Skip to content

Commit b127239

Browse files
aashildavideast
authored andcommitted
Fix the syntax for an example in user-authentication docs. (#422)
* Fix the syntax to fetch the correct authencation response. * With the current syntax an exception is thrown: "cannot read property null of uid"
1 parent 1ebb726 commit b127239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/5-user-authentication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ import { AngularFire } from 'angularfire2';
8787
moduleId: module.id,
8888
selector: 'app',
8989
template: `
90-
<div> {{ (af.auth | async).uid }} </div>
90+
<div> {{ (af.auth | async)?.uid }} </div>
9191
<button (click)="login()">Login</button>
9292
`,
9393
})

0 commit comments

Comments
 (0)