How to change button background-color by id on button click in ionic?


#1

How to change background-color of single button out of many button on button click and also after click on second button background-color should be removed from first button


#2

You can try to create your own directive https://www.codementor.io/christiannwamba/build-custom-directives-in-angular-2-jlqrk7dpw


#3

Bind the [style.background-color] property and modify its value in the controller appropriately.