Skip to content

Commit 863310e

Browse files
jamesdanielsdavideast
authored andcommitted
Note about importing from 'firebase'
1 parent bb0a5d3 commit 863310e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Auth-with-Ionic2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ Update the service with the following code.
263263
import { Observable } from 'rxjs/Observable';
264264
import { Injectable } from '@angular/core';
265265
import { AngularFireAuth } from 'angularfire2/auth';
266+
// Do not import from 'firebase' as you'll lose the tree shaking benefits
266267
import * as firebase from 'firebase/app';
267268

268269
@Injectable()
@@ -469,6 +470,7 @@ your ```auth-service.ts``` code should look like this.
469470
import { Observable } from 'rxjs/Observable';
470471
import { Injectable } from '@angular/core';
471472
import { AngularFireAuth } from 'angularfire2/auth';
473+
// Do not import from 'firebase' as you'll lose the tree shaking benefits
472474
import * as firebase from 'firebase/app';
473475

474476
import { Platform } from 'ionic-angular';

0 commit comments

Comments
 (0)