$scope.viewModel={
'expenses' : [],
'members' : [
{'id':1,'name':'Azeeb'},
{'id':2,'name':'Vijeesh'},
{'id':3,'name':'Rohit'},
{'id':4,'name':'Vishal'},
{'id':5,'name':'Akhil'},
{'id':6,'name':'Gireesh'}
],
'memCount': "I need here the length of members array within viewModel"
};
Above is my code. I want to get the length of an array?? Plss help
--
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.