jeudi 2 avril 2015

How to show default query param value in url in ember?

Ember doesn't show the query params in the url if the query params value is the default value. But I'd like to show it. Is there an option to change this behavior to show rather than hide?



App.IndexController = Ember.ArrayController.extend({
queryParams: ['type'],
type: "horror" // the default value, won't appear in URL or params
})




Aucun commentaire:

Enregistrer un commentaire