11import  {  ApplicationRef ,  Component ,  NgZone  }  from  '@angular/core' ; 
22import  {  FirebaseApp ,  FirebaseApps  }  from  '@angular/fire/app' ; 
33import  {  Auth ,  AuthInstances ,  authState  }  from  '@angular/fire/auth' ; 
4- import  {  Firestore ,  FirestoreInstances ,  getDoc ,  doc ,  DocumentSnapshot  }  from  '@angular/fire/firestore/lite' ; 
4+ import  {  Firestore  as  FirestoreLite ,  FirestoreInstances  as  FirestoreLiteInstances ,  getDoc ,  doc ,  DocumentSnapshot  }  from  '@angular/fire/firestore/lite' ; 
5+ import  {  Firestore ,  FirestoreInstances  }  from  '@angular/fire/firestore' ; 
56import  {  DocumentData  }  from  'rxfire/firestore/lite/interfaces' ; 
67import  {  debounceTime ,  distinctUntilChanged  }  from  'rxjs/operators' ; 
8+ import  {  Storage ,  StorageInstances  }  from  '@angular/fire/storage' ; 
9+ import  {  Messaging ,  MessagingInstances  }  from  '@angular/fire/messaging' ; 
10+ import  {  RemoteConfig ,  RemoteConfigInstances  }  from  '@angular/fire/remote-config' ; 
11+ import  {  Functions ,  FunctionsInstances  }  from  '@angular/fire/functions' ; 
12+ import  {  Database ,  DatabaseInstances  }  from  '@angular/fire/database' ; 
13+ import  {  Analytics ,  AnalyticsInstances  }  from  '@angular/fire/analytics' ; 
14+ import  {  Performance ,  PerformanceInstances  }  from  '@angular/fire/performance' ; 
715
816@Component ( { 
917  selector : 'app-root' , 
@@ -17,19 +25,42 @@ export class AppComponent {
1725  myDocData : Promise < DocumentSnapshot < DocumentData > > ; 
1826  title  =  'sample' ; 
1927  constructor ( 
20-     public  app : FirebaseApp ,  // default Firebase App 
21-     public  auth : Auth ,  // default Firbase Auth 
22-     public  apps : FirebaseApps ,  // all initialized App instances 
23-     public  authInstances : AuthInstances ,  // all initialized Auth instances 
24-     public  firestore : Firestore , 
25-     public  firestoreInstances : FirestoreInstances , 
28+     app : FirebaseApp ,  // default Firebase App 
29+     auth : Auth ,  // default Firbase Auth 
30+     apps : FirebaseApps ,  // all initialized App instances 
31+     authInstances : AuthInstances ,  // all initialized Auth instances 
32+     firestoreLite : FirestoreLite , 
33+     firestoreLiteInstances : FirestoreLiteInstances , 
34+     firestore : Firestore , 
35+     firestoreInstances : FirestoreInstances , 
36+     storage : Storage , 
37+     storageInstances : StorageInstances , 
38+     messaging : Messaging , 
39+     messagingInstances : MessagingInstances , 
40+     remoteConfig : RemoteConfig , 
41+     remoteConfigInstances : RemoteConfigInstances , 
42+     functions : Functions , 
43+     functionsInstances : FunctionsInstances , 
44+     database : Database , 
45+     databaseInstances : DatabaseInstances , 
46+     analytics : Analytics , 
47+     analyticsInstances : AnalyticsInstances , 
48+     performance : Performance , 
49+     performanceInstances : PerformanceInstances , 
2650    appRef : ApplicationRef , 
2751    zone : NgZone , 
2852  )  { 
29-     console . log ( { app,  auth,  apps,  authInstances,  firestore,  firestoreInstances } ) ; 
53+     console . log ( { 
54+       app,  auth,  apps,  authInstances,  firestore,  firestoreInstances, 
55+       firestoreLite,  firestoreLiteInstances,  storage,  storageInstances, 
56+       messaging,  messagingInstances,  performance,  performanceInstances, 
57+       analytics,  analyticsInstances,  functions,  functionsInstances,  database, 
58+       databaseInstances,  remoteConfig,  remoteConfigInstances
59+     } ) ; 
3060    authState ( auth ) . subscribe ( it  =>  console . log ( 'authState' ,  it ) ) ; 
3161    appRef . isStable . pipe ( distinctUntilChanged ( ) ) . subscribe ( it  =>  console . log ( 'isStable' ,  it ) ) ; 
32-     this . myDocData  =  getDoc ( doc ( firestore ,  'animals/NJdGQCv1P92SWsp4nSE7' ) ) ; 
62+     this . myDocData  =  getDoc ( doc ( firestoreLite ,  'animals/NJdGQCv1P92SWsp4nSE7' ) ) ; 
63+     console . log ( ( app  as  any ) . container ) ; 
3364    // firestoreInstance$.subscribe(it => console.log('$', it)); 
3465    // initializeFirestore$.subscribe(it => console.log('init', it)); 
3566  } 
0 commit comments