First dom mapping via angular binding on form input field.
Also added type checks for integer.
Added per page parameter.
Also dynamic computing of from/to of current view size.
Costants are a best practise with angular
http://twofuckingdevelopers.com/2014/06/angularjs-best-practices-001-constants/