So I've got this:
animations: [
trigger('shake', [transition('* => *', /* some animation */)])
]
And
<app-button
[@shake]="shake"
>
</app-button>
When I click it, I set shake
to true. When I click it again, I want the button to shake again but it doesn't because shake is already true.
How do I get around this?
New to Angular, thanks!