As a newbie to Ember.js and ember-cli, I am having trouble understanding what seems necessary for my application to work.
The logical hierarchy of my application looks something like this:
Projects
|___Project
|___Details
|___Team Members
|___Budget
|___Planned
|___Actual
And currently this is my router.js:
this.resource('projects');
this.resource('project', { path: 'projects/:project_id' }, function() {
this.route('details');
this.route('team');
this.route('milestones');
this.resource('budget', function(){
this.route('project-budget', { path: 'project'});
this.route('resource-budget', {path: 'team'});
});
});
I am having problems with where to put my files. To the point of two nested routes within the budget, my folder structure looked like my hierarchy, but since the resource resets the namespace, now to make it work, I have to pull my budget template, route and controller back to the top level (with project materials), which just seems messy and how it can cause headaches when trying to save this thing later.
Am I doing it wrong?