“AngularJS OnClick Nonaktifkan tombol Klik” Kode Jawaban

Angular Nonaktifkan klik

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>
Santino

AngularJS OnClick Nonaktifkan tombol Klik

<button id="submitRequest" onclick="this.disabled=true" class="btn btn-primary btn-active" ng-disabled="!frmRequest.$valid||!r.DataUseAgreement||(!chkBMT&&!chkOncore&&!chkCAISIS&&!chkLIMS&&!chkFCR)" ng-click="SaveData()"><i class="fa fa-save"></i> Submit</button>
 Run code snippet
Outrageous Orangutan

Jawaban yang mirip dengan “AngularJS OnClick Nonaktifkan tombol Klik”

Pertanyaan yang mirip dengan “AngularJS OnClick Nonaktifkan tombol Klik”

Lebih banyak jawaban terkait untuk “AngularJS OnClick Nonaktifkan tombol Klik” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya