vendredi 28 avril 2017

How to have an Ember route both with and without query params

Currently, I have a route that looks like "abc.com/name?age=4". How do I configure my route, so that "abc.com/name" without the query param, "age=4", is still a valid page?

All my route file has right now is:

model(params) {
    return this.store.queryRecord('name', params);
}




Aucun commentaire:

Enregistrer un commentaire