I have an array of templates which has multiple sections associated with it.

var template = 
[{templateID:1,templateName:"Template1",templateSections:[{sectionID:1,sectionName:"Section1"},{sectionID:2,sectionName:"Section2"},{sectionID:3,sectionName:"Section3"}]},{templateID:2,templateName:"Template2",templateSections:[{sectionID:1,sectionName:"Section1"},{sectionID:2,sectionName:"Section2"}]}];

how to show unique sectionNames with a filter 

 <div data-ng-repeat="template in templates">

   <div data-ng-repeat="section in 
template.sections">{{section.sectionName}}</div></div>


-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to