is there a way that i can dynamically change the value of a result set in
the controller depends on the data i get?
for example:
<ul>
<li ng-repeat="item in items">
categoryid:*{{item.categoryid}}*
category:*{{item.categoryname}}*
</li>
......
</ul>
so is it possible to have a dynamic categoryname by making a switch case
statement inside the controller using the item.categoryid and return a
proper categoryname.
heres a plunker of what i did but it didnt
work. http://plnkr.co/edit/78pgl3oXrnfCprQIUL45?p=preview
thanks :)
--
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.