File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 128
128
* * `$onChanges(changesObj)` - Called whenever one-way (`<`) or interpolation (`@`) bindings are updated. The
129
129
* `changesObj` is a hash whose keys are the names of the bound properties that have changed, and the values are an
130
130
* object of the form `{ currentValue, previousValue, isFirstChange() }`. Use this hook to trigger updates within a
131
- * component such as cloning the bound value to prevent accidental mutation of the outer value.
131
+ * component such as cloning the bound value to prevent accidental mutation of the outer value. Note that this will
132
+ * also be called when your bindings are initialized.
132
133
* * `$doCheck()` - Called on each turn of the digest cycle. Provides an opportunity to detect and act on
133
134
* changes. Any actions that you wish to take in response to the changes that you detect must be
134
135
* invoked from this hook; implementing this has no effect on when `$onChanges` is called. For example, this hook
You can’t perform that action at this time.
0 commit comments