I would like to change the background colour of a button when it is clicked
HTML code:
I would use ng-class or ng-style which apply a css style or class based on a scope expression. See the angular documentation for details.
ng-class
ng-style