My configuration (ember is 2.3.0.beta2):
Ember : 2.3.0
Ember Data : 2.3.3
jQuery : 1.11.3
Ember Simple Auth : 1.0.0
app/routes/application.js:
export default Ember.Route.extend(ApplicationRouteMixin, {
session: Ember.inject.service(),
auth() {
return this.get('session');
}
}
app/templates/application.hbs:
{{log session}} - gives undefined
{{log auth}} - gives null
Where I'm wrong or this is a bug? Everything is correct according to docs. Also tried same thing in component. Same results.
Aucun commentaire:
Enregistrer un commentaire