I have array like below mentioned
*electrical: Object*
name: "sec elect"
order: 2
phone: "2222222222"
__proto__: Object
*mechanical: Object*
name: "four mechan"
order: 4
phone: "4444444444"
__proto__: Object
*plumbing: Object*
name: "thr plum"
order: 3
phone: "3333333333"
__proto__: Object
*primary: Object*
name: "first primary"
order: 1
phone: "1111111111"
__proto__: Object
I am getting the name , order using the ng repeat . But how to get the name
of the object (eg. *electrical,plumbing,primary*) using the ng-repeat .
I am display name,phone using the code like this in the html file.
<div ng-repeat="item in lastindexArray">
{{item.name}} --{{item.phone}}
</div>
Please guide me on this .
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.