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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -