How to design the data and ember application for a url something like this…
http://<something>/projects/<id>/iterations/<id>/stories/<id>/task/<id>
http://<something>/projects/01/iterations/123/stories/5/task/8
When designed in a normal many routes under one resource, is this a right technique?:
Scrums.Router.map(function() {
this.resource('projects', { path: '/' }, function(){
this.route('iterations', { path: '/iterations' }, function(){
this.route('stories', { path: '/stories' }, function(){
this.route('tasks', { path: '/tasks' }, function(){
});
});
});
});
});
- If yes, How to design the data and load models?
- Is there a better design approach which can be used? mixins?
- url should be sharable and should load the right views and controller.