NullInjectorError: No provider for InjectionToken angularfire2.app.options

后端 未结 3 1173
长发绾君心
长发绾君心 2021-01-18 19:35

I\'m trying to insert the form data in cloud Firestore database. Below is my x.component.ts file in which I\'m getting error at constructor where I\'m writing



        
3条回答
  •  -上瘾入骨i
    2021-01-18 20:37

    I think I know the answer which solved my problem. I just had to import the below statement to the service I created and need to create object in constructor of service.

    import { AngularFirestore } from '@angular/fire/firestore';
    

提交回复
热议问题