implement facebook login in website angular code example
Example 1: using fb login with angular app
export class AppComponent implements OnInit {
...
}
Example 2: using fb login with angular app
ngOnInit() {
this.authService.authState.subscribe((user) => {
this.user = user;
this.loggedIn = (user != null);
console.log(this.user);
});
}