just see the below code where template name has been specified in
ng-include but how could i set the template name dynamically?
discuss with code sample.
<div ng-include="'partialComment.html'" ng-model="comments"></div>
Here is the ng-include partial:
<ul>
<li ng-repeat="c in comments">
{{c.text}}
<div ng-switch on="c.comments.length > 0">
<div ng-switch-when="true">
<div ng-init="comments = c.comments;"
ng-include="'partialComment.html'"></div>
</div>
</div>
</li>
</ul>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.