What angularjs expression syntax is this in ng-class

前端 未结 5 1261
渐次进展
渐次进展 2021-01-30 13:04

The AngularJS Noob Handbook has some code which reduces class manipulation to a simple expression and binding :

...&         


        
5条回答
  •  一生所求
    2021-01-30 13:58

    like this example below :

    div(ng-class=" condition ? ['class_one', 'class_two'] : ['class_three', 'class_four']")
    

提交回复
热议问题