Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 693bb0d

Browse files
houfumyspivey
authored andcommitted
docs(auth): fix error in *ngIf syntax (angular#1396)
Correct example for creating a local variable in *ngIf
1 parent 9a1b7f7 commit 693bb0d

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)