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:
parent
b30bb8dd91
commit
72b9276ec9
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue