I have an angularjs app. I have a checkbox in my html :
<input ng-true-value="Paused" ng-model="paused" type="checkbox">Show Paused
When I click this checkbox it should only display the elements having the class='paused'.
for eg let's say this is my view:
<span class="paused">1</span>
<span class="notpaused">2</span>
<span class="notpaused">3</span>
So when I click on Show Paused I want that only the <span> with class="paused" be visible in the view. other elements should be hidden from the view. I know how to use filters in angularjs but I'm not able to figure out how to do it when we have to filter by class name.
Any suggestions on how can I do it?