can someone tell me why the following code does not work?:
Im trying to change the buttons icon on click event by using a local variable (#minimizeIcon) in my template.
But if i click the button nothing happens.
If i do this with data binding ( [name]=“myVariable”) and change the variable from inside the component class it works. But i thought it should work with a local template variable too.
<button ion-fab mini clear (click)="minimizeIcon.name = 'arrow-dropup'"> <ion-icon #minimizeIcon name="arrow-dropdown"></ion-icon> </button>
As im still new to ionic/typescript, i hope someone can explain why this dont works