I want to know how can I get the information about the current user in Ember. I'm using ember-simple-auth.
I followed this answer but couldn't access this.get('session.user_email')
.
However, if I do the following in my application.js
route:
export default Ember.Route.extend(ApplicationRouteMixin, {
model() {
console.log(this.get('session'));
}
});
I get the following response:
Here is the link to the repo: http://ift.tt/1Xv7Dye.
Aucun commentaire:
Enregistrer un commentaire