Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <li ng-repeat="filterType in filters" >
- <span ng-bind="filterType.name"></span>
- <span ng-bind="getSelectedValueCount(filterType.id)"> </span>
- <button type="button" class="close" ng-if="getSelectedValueCount(filterType.id) > 0 ">Close</button>
- </li>
- <li ng-repeat="filterType in filters" ng-init="myValue = getSelectedValueCount(filterType.id);" ng-model="myValue " >
- <span ng-bind="filterType.name"></span>
- <span ng-bind="myValue"> </span>
- <button type="button" class="close" ng-if="myValue > 0 ">Close</button>
- </li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement