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.
263263import { Observable } from ' rxjs/Observable' ;
264264import { Injectable } from ' @angular/core' ;
265265import { AngularFireAuth } from ' angularfire2/auth' ;
266+ // Do not import from 'firebase' as you'll lose the tree shaking benefits
266267import * as firebase from ' firebase/app' ;
267268
268269@Injectable ()
@@ -469,6 +470,7 @@ your ```auth-service.ts``` code should look like this.
469470import { Observable } from ' rxjs/Observable' ;
470471import { Injectable } from ' @angular/core' ;
471472import { AngularFireAuth } from ' angularfire2/auth' ;
473+ // Do not import from 'firebase' as you'll lose the tree shaking benefits
472474import * as firebase from ' firebase/app' ;
473475
474476import { Platform } from ' ionic-angular' ;
You can’t perform that action at this time.
0 commit comments