Ion-button has no value property


#1

Hi,
I’m trying to set the click event of a button to call a function with a value obtained from an observable async object:

<button danger type=“button” #item value="{{(jugador | async)?.uid}}" (click)=“eliminarJugador(item.value)” ion-button color=“danger”>Eliminar

This approach is not working since the identifier ‘value’ is not defined in the ion-button since it does not contain that member.

I’ve partly fixed this by using the following approach, but the UI result is ugly

39

<button danger #item value="{{(jugador | async)?.uid}}" (click)=“eliminarJugador(item.value)” color=“danger”>
Eliminar

Thanks