From 583c5ffcb5e78830015f2e3cced2b7a1ede939b3 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Wed, 15 Jul 2015 13:25:38 -0700 Subject: [PATCH] fix(ng_for): fixed ng_for to pass a change detector ref to the pipe registry --- modules/angular2/src/directives/ng_for.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/angular2/src/directives/ng_for.ts b/modules/angular2/src/directives/ng_for.ts index 3e1a4492de..c708fdc909 100644 --- a/modules/angular2/src/directives/ng_for.ts +++ b/modules/angular2/src/directives/ng_for.ts @@ -5,7 +5,8 @@ import { ProtoViewRef, Pipes, LifecycleEvent, - Pipe + Pipe, + ChangeDetectorRef } from 'angular2/angular2'; import {isPresent, isBlank} from 'angular2/src/facade/lang'; @@ -46,11 +47,11 @@ export class NgFor { _pipe: Pipe; constructor(private viewContainer: ViewContainerRef, private protoViewRef: ProtoViewRef, - private pipes: Pipes) {} + private pipes: Pipes, private cdr: ChangeDetectorRef) {} set ngForOf(value: any) { this._ngForOf = value; - this._pipe = this.pipes.get("iterableDiff", value, null, this._pipe); + this._pipe = this.pipes.get("iterableDiff", value, this.cdr, this._pipe); } onCheck() {