@@ -186,7 +186,7 @@ Now inject AngularFireDatabase in your component. Open your `home.ts` by going i
186186
187187> 2 ) Inject your AngularFireDatabase dependency in the constructor.
188188
189- > 3 ) Call the list method on the AngularFireDatabase module .
189+ > 3 ) Call the list method on the AngularFireDatabase service .
190190
191191Your ` home.ts ` file should look like this.
192192
@@ -270,8 +270,8 @@ export class AuthService {
270270 private authState: Observable <firebase .User >;
271271 private currentUser: firebase .User ;
272272
273- constructor (public afAuth$ : AngularFireAuth ) {
274- this .authState = afAuth$ .authState ;
273+ constructor (public afAuth : AngularFireAuth ) {
274+ this .authState = afAuth .authState ;
275275 afAuth$ .subscribe ((user : firebase .User ) => {
276276 this .currentUser = user ;
277277 });
@@ -282,11 +282,11 @@ export class AuthService {
282282 }
283283
284284 signInWithFacebook(): firebase .Promise <FirebaseAuthState > {
285- return this .afAuth$ .auth .signInWithPopup (new firebase .auth .FacebookAuthProvider ());
285+ return this .afAuth .auth .signInWithPopup (new firebase .auth .FacebookAuthProvider ());
286286 }
287287
288288 signOut(): void {
289- this .afAuth$ .signOut ();
289+ this .afAuth .signOut ();
290290 }
291291
292292 displayName(): string {
@@ -479,8 +479,8 @@ export class AuthService {
479479 private authState: Observable <firebase .User >;
480480 private currentUser: firebase .User ;
481481
482- constructor (public afAuth$ : AngularFireAuth ) {
483- this .authState = afAuth$ .authState ;
482+ constructor (public afAuth : AngularFireAuth ) {
483+ this .authState = afAuth .authState ;
484484 afAuth$ .subscribe ((user : firebase .User ) => {
485485 this .currentUser = user ;
486486 });
@@ -494,16 +494,16 @@ export class AuthService {
494494 if (this .platform .is (' cordova' )) {
495495 return Facebook .login ([' email' , ' public_profile' ]).then (res => {
496496 const facebookCredential = firebase .auth .FacebookAuthProvider .credential (res .authResponse .accessToken );
497- return this .afAuth$ .auth .signInWithCredential (facebookCredential );
497+ return this .afAuth .auth .signInWithCredential (facebookCredential );
498498 });
499499 } else {
500- return this .afAuth$ .auth .signInWithPopup (new firebase .auth .FacebookAuthProvider ());
500+ return this .afAuth .auth .signInWithPopup (new firebase .auth .FacebookAuthProvider ());
501501 }
502502
503503 }
504504
505505 signOut(): void {
506- this .afAuth$ .signOut ();
506+ this .afAuth .signOut ();
507507 }
508508
509509 displayName(): string {
0 commit comments