Skip to content

Commit 7a34bae

Browse files
houfudavideast
authored andcommitted
docs(auth): fix error in *ngIf syntax (#1396)
Correct example for creating a local variable in *ngIf
1 parent f743339 commit 7a34bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/auth/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as firebase from 'firebase/app';
1616
@Component({
1717
selector: 'app-root',
1818
template: `
19-
<div *ngIf="afAuth.authState | async; let user; else showLogin">
19+
<div *ngIf="afAuth.authState | async as user; else showLogin">
2020
<h1>Hello {{ user.displayName }}!</h1>
2121
<button (click)="logout()">Logout</button>
2222
</div>

0 commit comments

Comments
 (0)