javascript - Angular logic chaining in ng-class -


i'm trying chain logic in angular's ng-class directive. code within ng-class looks this:

'class-name': (x && y) || (z && !y) 

it working fine when had (x && y) other expression broke it. this:

'class-name': x && y, 'class-name': z && !y 

also doesn't work. know correct syntax chaining expressions here? lot help!


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -