I have a lot of problems trying to update the style for the button when I click.
Firstly, here is the original markup:
<button class="btn btn-add" (click)="handleButtonClick(id)">
Add<i class="fa fa-plus-circle"></i>
</button>
When I click the button, I try:
How can i do this angular 2? Right now, I just added a boolean and a flip, and I will show different patterns based on value. However, there seems to be a way to handle this through some features? The documentation says that you can use strings limited to spaces for multiple classes, but I'm not sure how to do this.
source
share