Created
January 13, 2018 17:48
-
-
Save carlosrojaso/a344a73197d4cfdc0458a89e629976ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AngularFireAuth } from 'angularfire2/auth'; | |
.... | |
constructor(public afAuth: AngularFireAuth) { } | |
........ | |
this.afAuth.authState.subscribe(res => { | |
if (res && res.uid) { | |
console.log('user is logged in'); | |
} else { | |
console.log('user not logged in'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment