let’s say that I have app/routes/meetings/new.js. New instance of a meeting is created in the component. The component needs project dependency (belongsTo)
Now I looks like this:
model() {
return this.modelFor('projects.project');
},
I’m not sure if
- project should be returned in the
modelhook, - rather in
setupController - or it should be left for creating a new meeting instance?
Suppose that I need more dependencies that are fetched via RSVP. Will I’m better of returning an object like this:
return {
project,
account,
owner,
}
or setting the dependencies on the route level? (this.set('project', project'))