Rapnar
Rapnar

Reputation: 147

Angular class expression in jade

Is there a way to do this in jade? I've tried doing it several different ways but with no luck. I also couldn't find anything similar to this.

I tried

.animated.{{class}}

but it compiled to

<div class="animated">.{{class}}

instead of (desired)

<div class="animated {{class}}">

Upvotes: 5

Views: 1773

Answers (1)

plus-
plus-

Reputation: 46543

This should do for you:

.animated(class='{{class}}')

Upvotes: 10

Related Questions