You can just do it like this
<a class="user" (click)="isOverflown && menu.toggle($event)"></a>
More Related Contents:
- Angular HTTP GET with TypeScript error http.get(…).map is not a function in [null]
- How to detect a route change in Angular?
- How can I use “*ngIf else”?
- Error when trying to inject a service into an angular component “EXCEPTION: Can’t resolve all parameters for component”, why?
- Angular2 change detection: ngOnChanges not firing for nested object
- How to go back last page
- Angular 2 – innerHTML styling
- Difference between [ngClass] vs [class] binding
- Angular Subscribe within Subscribe
- How to store token in Local or Session Storage in Angular 2?
- How to use [(ngModel)] on div’s contenteditable in angular2?
- How can I conditionally disable the routerLink attribute?
- Cannot read property ‘push’ of undefined(…) in angular2
- When to use square brackets [ ] in directives @Inputs and when not?
- Angular2 – Interaction between components using a service
- How to implement sleep function in TypeScript?
- Testing error case with observables in services
- Angular 2 Testing – Async function call – when to use
- Uncaught (in promise): Error: StaticInjectorError(AppModule)[options]
- angular keyvalue pipe sort properties / iterate in order
- Multiple named router-outlet angular 2
- angular 2 http withCredentials
- VSCode debugger blank page and loading on launch with VS Code 1.76.1 and Chrome 111
- How to translate mat-paginator in Angular 4?
- JIT compiler unavailable after angular update
- bootstrap not connect to the angular 6?
- How to use paginator from material angular?
- How to change angular material datepicker format
- How to make a post request with angular 5
- Does Angular2 use Web Components?