How can I access the "model" in an Ember.Controller from an Ember.Service? In my case I need the ember-data model in a url such as http://localhost:4200/users/4/groups. In a route I can simply do this.modelFor('users')
Ember.Controller
Ember.Service
http://localhost:4200/users/4/groups
this.modelFor('users')
Aucun commentaire:
Enregistrer un commentaire