How to increment a line number in AngularJS??
$scope.line = 1;
$scope.next = function(){
.....;
.....;
.....;
$scope.line++;
};
I am using it as Line:{{line}}
But every element gets the same number. What should I do here contain them in an array and display them using repeat or is there any better way?