We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7879761 commit 583c5ffCopy full SHA for 583c5ff
modules/angular2/src/directives/ng_for.ts
@@ -5,7 +5,8 @@ import {
5
ProtoViewRef,
6
Pipes,
7
LifecycleEvent,
8
- Pipe
+ Pipe,
9
+ ChangeDetectorRef
10
} from 'angular2/angular2';
11
import {isPresent, isBlank} from 'angular2/src/facade/lang';
12
@@ -46,11 +47,11 @@ export class NgFor {
46
47
_pipe: Pipe;
48
49
constructor(private viewContainer: ViewContainerRef, private protoViewRef: ProtoViewRef,
- private pipes: Pipes) {}
50
+ private pipes: Pipes, private cdr: ChangeDetectorRef) {}
51
52
set ngForOf(value: any) {
53
this._ngForOf = value;
- this._pipe = this.pipes.get("iterableDiff", value, null, this._pipe);
54
+ this._pipe = this.pipes.get("iterableDiff", value, this.cdr, this._pipe);
55
}
56
57
onCheck() {
0 commit comments