Hi all,

I have a scope like $scope.temp=[{"D":"12"},{"C":"10"},{"x":"20"}]

my html code is look like
<div ng-repeat="tmp in temp">
<div ng-repeat="(key,value) in tmp">{{key}} -- {{value}}</div>
</div>

i expected the o/p will be :

D;12
C:10
X:20

but i get

C:10
D:12
X:20
i don't know why it is coming like this? i need to print the order as it is
given in the scope variable.. Some one could explain why it's printing in
ascending  order.. and i'm looking for an simple solution



Thanks & Regards,
Sasikumar.V

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