Mel
Mel

Reputation: 245

JADE templating engine does not render ng-include

I have the following snippet in my index.jade

...
div(ng-include='ng-include', src='contentInclude')
...

I have contentInclude.jade in the same directory as index.jade but when I access index.jade, contentInclude.jade is not being rendeered.

Any assistance will be much appreciated. Melroy

Upvotes: 0

Views: 1791

Answers (2)

Michael Czolko
Michael Czolko

Reputation: 2838

I used:

div(ng-include="'contentInclude.jade'")

And it works like a charm!

Upvotes: 2

zs2020
zs2020

Reputation: 54514

When use ng-include as an element, you can do

ng-include(src='\'contentInclude.jade\'')

as attribute:

div(ng-include='\'contentInclude.jade\'')

Upvotes: 1

Related Questions