fix(common): then and else template might be set to null (#22298)

PR Close #22298
This commit is contained in:
Victor Berchet
2018-02-18 18:41:43 -08:00
parent a8b5465e24
commit 8115edc82f
3 changed files with 39 additions and 8 deletions

View File

@ -275,8 +275,8 @@ export declare class NgForOfContext<T> {
/** @stable */
export declare class NgIf {
ngIf: any;
ngIfElse: TemplateRef<NgIfContext>;
ngIfThen: TemplateRef<NgIfContext>;
ngIfElse: TemplateRef<NgIfContext> | null;
ngIfThen: TemplateRef<NgIfContext> | null;
constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<NgIfContext>);
}