Skip to content

Commit

Permalink
docs(auth): fix error in *ngIf syntax (#1396)
Browse files Browse the repository at this point in the history
Correct example for creating a local variable in *ngIf
  • Loading branch information
houfu authored and davideast committed Dec 30, 2017
1 parent f743339 commit 7a34bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/auth/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as firebase from 'firebase/app';
@Component({
selector: 'app-root',
template: `
<div *ngIf="afAuth.authState | async; let user; else showLogin">
<div *ngIf="afAuth.authState | async as user; else showLogin">
<h1>Hello {{ user.displayName }}!</h1>
<button (click)="logout()">Logout</button>
</div>
Expand Down

0 comments on commit 7a34bae

Please sign in to comment.