Change background colour of button when clicked

后端 未结 4 1582

I would like to change the background colour of a button when it is clicked

HTML code:

4条回答
  •  一生所求
    2021-01-24 19:14

    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.

提交回复
热议问题