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

Commit 666fe16

Browse files
SQUASH ME
Docs etc
1 parent ada43c9 commit 666fe16

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/content/error/$compile/infchng.ngdoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ triggers the component's bound inputs to be updated:
1515
```
1616

1717
```js
18+
function Controller1() {}
1819
Controller1.$onChanges = function() {
1920
this.onChange();
2021
};
22+
23+
mod.component('c1', {
24+
controller: Controller1,
25+
bindings: {'prop': '<', onChange: '&'}
26+
}
2127
```
2228

2329
The maximum number of allowed iterations of the `$onChanges` hooks is controlled via TTL setting which can be configured via

src/ng/compile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,10 +1241,12 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
12411241
* Increasing the TTL could have performance implications, so you should not change it without proper justification.
12421242
*
12431243
* @param {number} limit The number of `$onChanges` hook iterations.
1244+
* @returns {number|object} the current limit (or `this` if called as a setting for chaining)
12441245
*/
12451246
this.onChangesTtl = function(value) {
12461247
if (arguments.length) {
12471248
TTL = value;
1249+
return this;
12481250
}
12491251
return TTL;
12501252
};

0 commit comments

Comments
 (0)