How to specify model to a ngInclude directive in AngularJS?


i wish to use the similar HTML template in 3 places just every time with a various model.
I know I can access the variables from the template but there names will be various.
do you know approach to pass a model to the ngInclude?
This is what i wish to achieve definitely the attribute add-variable doesn't work now. Then in my included template I would acces the detailsObject and it is properties.

{{projectSummary.ProjectResults.DisplayName}}






{{document.DisplayName}}






{{document.DisplayName}}





If I took a bad approach with using ng-include is there something else I should try?



Get Source Code

  Views 223   Posted on : Wednesday, March 20, 2013 2:17:27 PM
Related Tags:




Replies on "How to specify model to a ngInclude directive in AngularJS?" :

Nobody has replied on this post , be first to post answer.


Post Your Answer/Comment:

Please Login first to post Reply !


Note: Please Put Code into <code></code> block.




Also See: