fix(NgFor): allow default templates with ng-for-template

Closes #5161
This commit is contained in:
Pawel Kozlowski
2015-11-06 16:34:41 +01:00
parent c6ad269f43
commit 2d0c8f1b0e
2 changed files with 38 additions and 1 deletions
@@ -73,7 +73,11 @@ export class NgFor implements DoCheck {
}
}
set ngForTemplate(value: TemplateRef) { this._templateRef = value; }
set ngForTemplate(value: TemplateRef) {
if (isPresent(value)) {
this._templateRef = value;
}
}
doCheck() {
if (isPresent(this._differ)) {