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
You can try to create your own directive https://www.codementor.io/christiannwamba/build-custom-directives-in-angular-2-jlqrk7dpw
Bind the [style.background-color]
property and modify its value in the controller appropriately.