📅  最后修改于: 2022-03-11 15:01:43.562000             🧑  作者: Mango
try like this
@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
submit