Reference in Ember using Firebase 3.0

47 views
Skip to first unread message

Matt

unread,
Jun 23, 2016, 5:00:45 PM6/23/16
to Firebase + EmberJS
I've recently upgraded to Firebase 3.0, and I'm confused now how to incorporate a reference to firebase?

Before I had this:

In the controller:

firebase: Ember.inject.service(),

and then in actions {} I would have this:

const ref = this.get('firebase');
ref.changeEmail({
});


However, it seems as though this doesn't work as it did before.  How do I correctly reference Firebase to use some of the built in functions?



Matt

unread,
Jun 23, 2016, 5:25:05 PM6/23/16
to Firebase + EmberJS
Figured it out.....


Then I have this:

firebaseApp: Ember.inject.service(),

const ref = this.get('firebaseApp').auth();

ref.sendPasswordResetEmail(email).then(() => {
});
Reply all
Reply to author
Forward
0 new messages