angular - How to inject FirebaseApp in Angular2 service to use firebase.storage() with AngularFire2 -
i'm using angularfire2 version 2.0.0-beta.6
i wrote database.service
angularfire injection (see extract database service code).
it's ok usage.
but i'd integrate usage of firebase storage() api. can't inject firebaseapp in constructor's service use in component :
constructor( @inject(firebaseapp) private firebaseapp: any) {}
extract of database service :
import { injectable } '@angular/core'; import { angularfire, firebaseapp, firebaselistobservable } 'angularfire2'; @injectable() export class databaseservice { constructor(private af: angularfire) { this.init(); } ... service function }
some help, please. laurent
Comments
Post a Comment