Skip to main content

Posts

Showing posts with the label index counter

Index counter in AngularJs ng-repeat

Hello everyone, I am going to share the code sample for count the all  index from a array collection. The code with live demo as given below using the ng-repeat . The AngularJs code sample     angular.module( 'CounterApp' , [])           .controller( 'CounterController' , [ '$scope' ,   function   ($scope) {           $scope.CounterRows = [                 { name:   'Row1' , web:   'www.code-sample.com'   },                 { name:   'Row2' , web:   'www.code-sample.net'   },                 { name:   'Row3' , web:   'www.code-sample.in'   },      ...