pagination solution for Angular

demo: http://plnkr.co/edit/Wtkv71LIqUR4OhzhgpqL?p=preview