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://
12
12
import { Component } from ' @angular/core' ;
13
13
import { Observable } from ' rxjs/Observable' ;
14
14
import { AngularFireAuth } from ' angularfire2/auth' ;
15
- import { GoogleAuthProvider } from ' firebase/auth' ;
16
- import { User } from ' firebase' ;
15
+ import * as firebase from ' firebase/app' ;
17
16
18
17
@Component ({
19
18
selector: ' app-root' ,
@@ -25,14 +24,14 @@ import { User } from 'firebase';
25
24
})
26
25
export class AppComponent {
27
26
28
- user: Observable <User >;
27
+ user: Observable <firebase . User >;
29
28
30
29
constructor (public afAuth : AngularFireAuth ) {
31
30
this .user = afAuth .authState ;
32
31
}
33
32
34
33
login() {
35
- this .afAuth .auth .signInWithPopup (new GoogleAuthProvider ());
34
+ this .afAuth .auth .signInWithPopup (new firebase . auth . GoogleAuthProvider ());
36
35
}
37
36
38
37
logout() {
You can’t perform that action at this time.
0 commit comments