angular click stop propagation
<div (click)="$event.stopPropagation()"></div>
angular click stop propagation
<div (click)="$event.stopPropagation()"></div>
angular disable click
try like this
<button [disabled]="isDisabled" (click)="btnClick.emit($event)">
<ng-content></ng-content>
</button>
@Input() isDisabled: boolean = false;
@Output() btnClick = new EventEmitter();
Use Output and By default the button click event won't work if button is disabled. take advantage of it
<my-button [isDisabled]="isDisabled" (btnClick)="click($event)"> submit </my-button>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us