Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular class expression in jade

Tags:

angularjs

pug

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}}">
like image 705
Rapnar Avatar asked Jan 11 '13 18:01

Rapnar


Video Answer


1 Answers

This should do for you:

.animated(class='{{class}}')
like image 200
plus- Avatar answered Nov 08 '22 16:11

plus-