I am beginner at emberjs, I want to access url params in component but don't know how it is done in ember js.
I could get url params in route with code below:
model(params) {
this.store.query('ticket', {
page: {
number: params.page,
size: params.size
}
});
},
queryParams: {
page: {
refreshModel: true
},
size: {
refreshModel: true
}
}
Aucun commentaire:
Enregistrer un commentaire