Closed paulstelzer closed 3 years ago
Angular: 7.2.0
Firebase: 5.7.2
AngularFire: 5.1.1
To use services (e.g. AngularFireStorage) you have to import the module (e.g. AngularFireStorageModule). Is there a reason why the service don't get the providedIn: 'root' property (e.g. here https://github.com/angular/angularfire2/blob/master/src/storage/storage.ts#L18)?
AngularFireStorageModule
providedIn: 'root'
@Injectable({ providedIn: 'root', })
Not to add AngularFireStorageModule (or AngularFireFunctionsModule) anymore
AngularFireFunctionsModule
We have to add AngularFireStorageModule for example inside the app.module.ts if there is a service which is providedIn root
Closing as outdated.
Version info
Angular: 7.2.0
Firebase: 5.7.2
AngularFire: 5.1.1
How to reproduce these conditions
To use services (e.g. AngularFireStorage) you have to import the module (e.g.
AngularFireStorageModule
). Is there a reason why the service don't get theprovidedIn: 'root'
property (e.g. here https://github.com/angular/angularfire2/blob/master/src/storage/storage.ts#L18)?Expected behavior
Not to add
AngularFireStorageModule
(orAngularFireFunctionsModule
) anymoreActual behavior
We have to add
AngularFireStorageModule
for example inside the app.module.ts if there is a service which is providedIn root