i new in Angular and want to select or deselect all chexboxes from all pages. Now it's so that i have a master checkbox but it select and deselect only the current displayed page. I want to add a link(an option) which could help me by clicking on it one time to choose all checkboxes from the first to the last pages.
html look like:
<span ng-click="selectAll()" style="cursor: pointer;">
<span class="xxxx-xxxxxxxx-xxxx xx-xx"></span> select/deselect all
</span>
i just think about how i can implement my function selectAll() to get all items of all my pages.
$scope.selectAll = function () {/* some code */};
what is the best way to achiev this? Any suggestion will be welcome, thanks
Aucun commentaire:
Enregistrer un commentaire