I forgot this part:

<div class='segment' data-ng-repeat="x in names | filter: id()">
<p class='title'>{{ x.id }} -- {{ x.bodyType }}: {{ x.name2 }}</p>
<img class='pic' src='{{ x.photo }}' width='100px'> 
<p class='caption'>{{ x.caption }}</p>
<p class='more'><a href='" + resource + "'>More</a></p>
</div>

On Monday, April 20, 2015 at 2:45:27 PM UTC-7, Steve Husting wrote:
>
> MyCtrl.js has (truncated version):
>
> etc.
> {
> id: 2,
> bodyType:"Short Course",
> category:"Qualifier Series"
> },
> {
> id: 3,
> bodyType:"Short Course",
> category:"SC10 4x4"
> },
> {
> id: 4,
> bodyType:"Buggy",
> category:"RC10B5M"
> },
> etc.
>
> I can display one item by giving the id:
>
> <button class="buttonClass" ng-click="show='4'">B5M</button>
>
> How do I display an item by "bodyType" to list more than one item having a 
> matching value?
>

-- 
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