Hello, I'm fairly new to angular and have a question about how to handle a 
simple scenario.

How do you access the current item in the tag that you set up the ng-repeat?


<li ng-repeat="*item *in someList" *data-id="{{item.id}}"*>
  {{item.name}}
</li>

The scope of the <li> is the model that contains the someList, not the 
item.  So how do I set an attribute of the <li> to item.id?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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.

Reply via email to