我想传播按钮操作重置,使其首先发生在按钮的click事件之前,请帮助我了解如何在Angular 6中进行操作。
<div class="col-sm-1">
<button type="reset" mat-raised-button (click)="doAction(true)">Close</button>
</div>
<div class="col-sm-1">
<button type="reset" mat-raised-button (click)="doAction(false)">Clear</button>
</div>