I want to have something like the following HTML code using AngularJS:
<p class="itemsperpage">Items per page: <span>20</span> <span><a href="#">40</a></span> <span><a href="#">60</a></span> <span><a href="#">View all</a></span></p>
Where 20 is wrapped only by a , because is the current active element.
Now using AngularJS, how can I have something like:
var itemsPerPage = [20,40,60];
...
<p class="itemsperpage">Items per page:
<span ng-repeat='i in itemsPerPage'>
// here should print {{ i }} for the current active
// <a href="#">{{ i }}</a> for the elements not active
</span>
<span><a href="#">View all</a></span>
</p>
Is it possible to do something like this using AngularJS?