docs(common): fix condition in transformed *ngIf (#33425)

`<div class="hero-list" *ngIf="heroes else loading">` defines `heroes` as condition, but `hero-list` is used as condition in the transformed code `<ng-template [ngIf]="heroes" [ngIfElse]="loading">`.
PR Close #33425
This commit is contained in:
Michael Maier 2019-10-26 19:15:38 +02:00 committed by Alex Rickabaugh
parent b30bb8dd91
commit 72b9276ec9
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef, ɵstri
* the content of this unlabeled `<ng-template>` tag.
*
* ```
* <ng-template [ngIf]="hero-list" [ngIfElse]="loading">
* <ng-template [ngIf]="heroes" [ngIfElse]="loading">
* <div class="hero-list">
* ...
* </div>