<h1>Animals</h1>
<div class="group">
<h2>Primates</h2>
<div class="items">
<div class="item">
<p>Monkey - eats a banana</p>
<p>Gorilla - bangs his chest</p>
</div>
</div>
</div>
<div class="group">
<h2>Fish</h2>
<div class="items">
<div class="item">
<p>Salmon - sings Sinatra songs</p>
</div>
</div>
</div>
<div class="group">
<h2>Insects</h2>
<div class="items">
<div class="item">
<p>Ant - Forages for food</p>
</div>
</div>
</div>I managed to get this working with a bit of help from Stack Overflow who pointed me to a solution which uses $.defer to retrieve unique groups from the data. I go through the JSON object of everything, find the unique groups in the data using JavaScript, store them as separate lists and then use them to display data filtered to each list item - http://stackoverflow.com/questions/14800862/how-can-i-group-data-with-an-angular-filterThanks Daniel! That's actually incredibly good advice. Simplifies the process dramatically. I'm new to it so guidance like that is exactly what I needed.
I'm going to start to redesign my Angular code with that approach in mind and see if that starts to improve things :)
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/8FFkOeDuvg4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.