I'm curious to know what logic lies in that layer regarding the new ember routing and controllers:
If we take the route below as an example:
step1: Ember.Route.extend route: '/step1' connectOutlets: (router, event) -> exercise = WZ.Exercise.createRecord() router.get('exercisesNewStep1Controller').set 'groups', WZ.store.find(WZ.Group) router.get('exercisesNewController').connectOutlet 'step', 'exercisesNewStep1', exercise
My ExercisesNewStep1Controller is currently lifeless:
WZ.ExercisesNewStep1Controller = Em.Controller.extend()
The recommended tip seems to be that the route will simply take care of assigning the correct output to the correct controller with any other logic in the controller.
Should I reorganize my controller to something like this:
WZ.ExercisesNewStep1Controller = Em.Controller.extend createGroup: -> @set 'groups', WZ.store.find(WZ.Group)
This is a very simple example, but I think the logic is complete.
I am a little confused by what lies where with all layers. I think that the overhead is small, you need to create all these xxxController, xxxView files and the relationship between them.
I like ember, but I just want to raise that moment.
dagda1
source share