Add pagination in Angular and views

This commit is contained in:
Matt-Yorkley
2019-10-02 01:52:36 +01:00
parent 01d1e8243c
commit fe0de98821
6 changed files with 84 additions and 59 deletions

View File

@@ -27,13 +27,6 @@ describe 'ProductsCtrl', ->
it 'fetches products from Products', ->
expect(scope.Products.products).toEqual ['testy mctest']
it "increments the limit up to the number of products", ->
scope.limit = 0
scope.incrementLimit()
expect(scope.limit).toEqual 10
scope.incrementLimit()
expect(scope.limit).toEqual 10
it "blocks keypresses on code 13", ->
event =
keyCode: 13