Methods
Properties
model public
Defined in packages/@ember/controller/index.ts:57
The controller's current model. When retrieving or modifying a controller's
model, this property should be used instead of the content property.
queryParams public
Defined in packages/@ember/controller/index.ts:66
Defines which query parameters the controller accepts.
If you give the names ['category','page'] it will bind
the values of these query parameters to the variables
this.category and this.page.
By default, query parameters are parsed as strings. This
may cause unexpected behavior if a query parameter is used with toggleProperty,
because the initial value set for param=false will be the string "false", which is truthy.
To avoid this, you may specify that the query parameter should be parsed as a boolean
by using the following verbose form with a type property:
queryParams: [{
category: {
type: 'boolean'
}
}]
Available values for the type parameter are 'boolean', 'number', 'array', and 'string'.
If query param type is not specified, it will default to 'string'.
target public
Defined in packages/@ember/controller/index.ts:39
The object to which actions from the view should be sent.
For example, when a template uses the {{action}} helper,
it will attempt to send the action to the view's controller's target.
By default, the value of the target property is set to the router, and
is injected when a controller is instantiated. This injection is applied
as part of the application's initialization process. In most cases the
target property will automatically be set to the logical consumer of
actions for the controller.