I am trying to use pagination in searching . I want to pass the queryparameter in create record in the route
model: function(quick) {
var quick=this.store.createRecord('quick-search',{page:quick.page});
return quick;
},
actions: {
getSearchedProfile: function(quick) {
quick.save().then(function(response) {
},
function(error) {
//TODO: Display error message
});
}
}
in the controller..
queryParams: ['page'],
page: 2,
But when I clicked on the button the page value is null on the server side .
Aucun commentaire:
Enregistrer un commentaire