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

Commit 77fad09

Browse files
committed
docs($compile): update a mention of preassigning bindings in controllers
The deprecation warning claimed the bindings are preassigned in controllers by default which is not the case in 1.6. Ref #15870
1 parent e1f8a6e commit 77fad09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/ng/compile.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@
375375
* initialized.
376376
*
377377
* <div class="alert alert-warning">
378-
* **Deprecation warning:** although bindings for non-ES6 class controllers are currently
379-
* bound to `this` before the controller constructor is called, this use is now deprecated. Please place initialization
380-
* code that relies upon bindings inside a `$onInit` method on the controller, instead.
378+
* **Deprecation warning:** if `$compileProcvider.preAssignBindingsEnabled(true)` was fired, bindings for non-ES6 class
379+
* controllers are bound to `this` before the controller constructor is called but this use is now deprecated. Please
380+
* place initialization code that relies upon bindings inside a `$onInit` method on the controller, instead.
381381
* </div>
382382
*
383383
* It is also possible to set `bindToController` to an object hash with the same format as the `scope` property.

0 commit comments

Comments
 (0)