I am new to ember.I want to know about findpaged.Please consider the below code
var route = this;
var result = route.findPaged('student', {
"page": 1,
"per_page": 10,
"searchParam": searchParam,
"moduleName": "English",
"classId":"A"
});
route.controller.set("students", result);
}
I could not understand the above code.My understanding is findpaged is used to pagination.page,perpage,searchParam,modulename,classId are requestparam values for server side request.
1.Here is student modelname?
2.how to add the requestmapping value?
Example: url is http://localhost:8080/students/getstudentlist?page=1&per_page=10&classId=A&&moduleName=English
My question is how to add call this service in above findpaged code? Thanks.
Aucun commentaire:
Enregistrer un commentaire