how to find array size in angularjs
below is the code
<!DOCTYPE html> <html> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <body> <div ng-app="myApp" ng-controller="namesCtrl"> <p>Looping with objects:</p> <ul> <li ng-repeat="x in names"> {{ x.name}} </li> </ul> </div> $scope.names = [ {name:'Jani'} , {name:'raaj'} ]; }); </script> </body> </html>
here i need the size of the array of names help me in getting the size of the array using angualrjs
Please help me
angularjs
divya
source share