1try like this
2
3<button [disabled]="isDisabled" (click)="btnClick.emit($event)">
4 <ng-content></ng-content>
5</button>
6
7@Input() isDisabled: boolean = false;
8@Output() btnClick = new EventEmitter();
9Use Output and By default the button click event won't work if button is disabled. take advantage of it
10
11<my-button [isDisabled]="isDisabled" (btnClick)="click($event)"> submit </my-button>