Basic Animation - Transitions an element between two states driven by a model attribute.
app.component.html
<div><div><div *ngFor="let user of users"><button
class="btn"[@buttonState]="user.active"(click)="user.changeButtonState()">{{user.firstName}}</button></div></div></div>