I am working with a mat-form-field and have incorporated a custom mat-icon within it as a matprefix. However, I am now looking to create a click method for that matprefix icon. Despite my attempts to write a click method, it does not seem to be functioning as intended.
<mat-form-field floatLabel="never" >
<mat-icon (click)="clicking()" matPrefix class="formula-icon" svgIcon="lo-formula"
*ngIf="item[displayedColumn]?.formula != undefined && item[displayedColumn].lock == 'off'">
</mat-icon>
<input [value]=currentFocusValue
autocomplete="off">
</mat-form-field>