File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ the Firebase docs for more information on what methods are availabile.](https://
1212import { Component } from ' @angular/core' ;
1313import { Observable } from ' rxjs/Observable' ;
1414import { AngularFireAuth } from ' angularfire2/auth' ;
15- import { GoogleAuthProvider } from ' firebase/auth' ;
16- import { User } from ' firebase' ;
15+ import * as firebase from ' firebase/app' ;
1716
1817@Component ({
1918 selector: ' app-root' ,
@@ -25,14 +24,14 @@ import { User } from 'firebase';
2524})
2625export class AppComponent {
2726
28- user: Observable <User >;
27+ user: Observable <firebase . User >;
2928
3029 constructor (public afAuth : AngularFireAuth ) {
3130 this .user = afAuth .authState ;
3231 }
3332
3433 login() {
35- this .afAuth .auth .signInWithPopup (new GoogleAuthProvider ());
34+ this .afAuth .auth .signInWithPopup (new firebase . auth . GoogleAuthProvider ());
3635 }
3736
3837 logout() {
You can’t perform that action at this time.
0 commit comments