如果查询参数值是默认值,则Ember不会在URL中显示查询参数。但我想展示一下。是否可以将这种行为更改为显示而不是隐藏?
App.IndexController = Ember.ArrayController.extend({
queryParams: ['type'],
type: "horror" // the default value, won't appear in URL or params
})
Run Code Online (Sandbox Code Playgroud)