docs: changelog - fix else example (#14766)

The else syntax needs a `ng-template`.
This commit is contained in:
Cédric Exbrayat 2017-03-01 17:02:02 +01:00 committed by Igor Minar
parent fc9e6b2a0a
commit bc9e1debf2
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ Weve made changes under to hood to what AOT generated code looks like. These
Our template binding syntax now supports a couple helpful changes. You can now use an if/else style syntax, and assign local variables such as when unrolling an observable.
```
<div #loading>Loading...</div>
<ng-template #loading>Loading...</ng-template>
<div *ngIf="userObservable | async; else loading; let user">
{{ user.name }}
</div>