ControllerMixin#target

targetpublic

Defined in packages/ember-runtime/lib/mixins/controller.js:16

The object to which actions from the view should be sent.

For example, when a Handlebars 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.

Default: null

doc_EmberJs
2016-11-30 16:48:57
Comments
Leave a Comment

Please login to continue.