Below is my Angular Controller
Angular JS
var multistage = angular.module("multistage", []);
multistage.controller('groupStanding', function($scope1) {
$scope1.grouplimit = 3;
$scope1.competitorDTL = <?php echo json_encode($competitorDtl); ?>;
console.log($scope1.grouplimit);
});
and this is my html code below ...
HTML
<tbody data-ng-controller="fixtureController">
<tr data-ng-repeat="comp in competitorDTL">
<td>
<span class="badge" data-ng-if="$index+1 <= grouplimit">
{{$index+1}}</span> {{ comp.name}}
</td>
</tr>
</tbody>
Its not working and i am unable to identify exactly what the problem is? If I replace grouplimit variable and put 3 directly there than its work fine.
multistage.grouplimit
in the html. – Ceylan Mumun Kocabaş 2 days ago{{grouplimit}}
. – Valberthe 2 days ago