Hi,
I would like to change the label/text of a button dinamically, is it possible?
I’ve tried to get the object, but it seems that just change the innerText of the innerHTML is not possible.
<button #btnFilter (click)="toggleMenu()" secondary>
NEARBY
<ion-icon name="ios-arrow-forward"></ion-icon>
</button>
.ts
@ViewChild('btnFilter') btnFilter: ElementRef;
this.btnFilter.nativeElement // = undefined
Any tips?
Thank you.