📜  如何导入 firestoresettingstoken - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:38.200000             🧑  作者: Mango

代码示例2
import { AngularFirestoreModule, FirestoreSettingsToken } from '@angular/fire/firestore';
@NgModule({
  declarations: [AppComponent],
  imports: [
     ...
     AngularFirestoreModule,
     ...
  ],
  providers: [{ provide: FirestoreSettingsToken, useValue: {} }],
  bootstrap: [AppComponent]
})
export class AppModule { }