Answers for "angular stop propagtion clickk"

1

angular click stop propagation

<div (click)="$event.stopPropagation()"></div>
Posted by: Guest on March-19-2021
0

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>
Posted by: Guest on March-09-2021

Code answers related to "angular stop propagtion clickk"

Browse Popular Code Answers by Language