Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

docs($compile): provide usage of bindToController as an object #13625

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
* When an isolate scope is used for a component (see above), and `controllerAs` is used, `bindToController: true` will
* allow a component to have its properties bound to the controller, rather than to scope. When the controller
* is instantiated, the initial values of the isolate scope bindings are already available.
* It is also possible to use bindToController as an object like `bindToController: { text: '@text', obj: '=obj', expr: '&expr' }`
*
* #### `controller`
* Controller constructor function. The controller is instantiated before the
Expand Down