Last Updated: February 25, 2016
·
767
· st44100

Writing multiline ng-class in Jade

You can write like this ↓

div(
  ng-class= "{" +
    "'cls-a': type === 'a'," +
    "'cls-b': type === 'b'," +
    "'cls-c': type === 'c'," +
    "'cls-d': type === 'd'"
  "}"
).base-class
 p こんにちは

and You can edit all attribute at the same time.
LIke this ↓

pr.gif