Hi Naresh,
For such a simple use-case you might want to add a simple lookup function
to your component. If you need it more often, you can make it a separate
component.
in your template:
<td>{{vm.lookup(order.customer)}}</td>
in your controller lookup method:
cust =customers.find(cust => cust.id === IdFromArgument);
return cust.firstname + ' ' + cust.lastName;
When you do this in a separate component, you can even handle the updating
of the view more fine-grained. However I highly doubt there would be a
measurable gain from this added complexity.
Regards
Sander
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.