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
Post a Comment