File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ Update the service with the following code.
263
263
import { Observable } from ' rxjs/Observable' ;
264
264
import { Injectable } from ' @angular/core' ;
265
265
import { AngularFireAuth } from ' angularfire2/auth' ;
266
+ // Do not import from 'firebase' as you'll lose the tree shaking benefits
266
267
import * as firebase from ' firebase/app' ;
267
268
268
269
@Injectable ()
@@ -469,6 +470,7 @@ your ```auth-service.ts``` code should look like this.
469
470
import { Observable } from ' rxjs/Observable' ;
470
471
import { Injectable } from ' @angular/core' ;
471
472
import { AngularFireAuth } from ' angularfire2/auth' ;
473
+ // Do not import from 'firebase' as you'll lose the tree shaking benefits
472
474
import * as firebase from ' firebase/app' ;
473
475
474
476
import { Platform } from ' ionic-angular' ;
You can’t perform that action at this time.
0 commit comments