mercredi 30 décembre 2015

how to do pagination in ember js with json api response

give me a code for integration of ember js with pagination json api . i have created a pagination class with total no of pages and links like next,last.

i m using this code for integration but its not working .

extractMeta: function(store, typeClass, payload) {
     alert("hellooooooooooooooo");
        if (payload && payload._pagination) {
          store.setMetadataFor(typeClass, payload._pagination);
          delete payload._pagination;
        }
      },




Aucun commentaire:

Enregistrer un commentaire