Working with Firebase Storage

165 views
Skip to first unread message

Arbab Abdul Waheed

unread,
Jun 4, 2016, 5:00:41 AM6/4/16
to Firebase + EmberJS
Hi all,

So Firebase is now one-stop solution with hosting, storage, notifications and deep linkings. Just wanted to know how services such as storage can be used with ember? Will EmberFire support this or we have to go path of Web?

Thanks

Tim Stirrat

unread,
Jun 6, 2016, 2:48:35 PM6/6/16
to Arbab Abdul Waheed, Firebase + EmberJS
Hey!

I'm updating EmberFire as we speak to give you access to the Firebase app instance. This will allow you to access the storage API in a convenient manner:

firebaseApp: Ember.inject.service(),

someMethod() {
  const storage = this.get('firebaseApp').storage();
  // go nuts
}

I do not have plans to do other more specific storage integrations at this time. Ember Data is not set up to do file storage specifically, but you could store the Firebase Storage path in your Ember Data model and use the `firebaseApp` method above to save/retrieve those files.

Happy coding,

Tim

--
You received this message because you are subscribed to the Google Groups "Firebase + EmberJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-embe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arbab Abdul Waheed

unread,
Jun 6, 2016, 3:41:01 PM6/6/16
to Firebase + EmberJS
Thanks Tim.
Will give it a shot in a new project (rather than messing up my current progress) and update you. I hope by then it will be merged to master as well.
Reply all
Reply to author
Forward
0 new messages