Reputation: 245
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
Reputation: 2838
I used:
div(ng-include="'contentInclude.jade'")
And it works like a charm!
Upvotes: 2
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