How to do simple pagination in angular and ember js