Open payne-chris-r opened 8 years ago
Where do you see this change @payne-chris-r? I talked with @gaand briefly about this, but I'd like to see the code to make sure we're all on the same page.
We'll need to generate the application index route and create some list data.
ember generate route index
//index/route.js
import Ember from 'ember';
...
NOT:
ember generate route lists
I actually think this should be lists.index
, but I didn't get there. Perhaps this is related to #7 ?
@gaand Thanks. Can we flesh this out more? I'd like to know your thoughts on the user flow through these routes.
For now, I've advised @payne-chris-r to use index
as a landing page, and that template just has a welcome message and a link to the lists
route.
From slack: [1:23]
The lists route should have an explicit index because reasons.
[1:24]
Kidding, it should have an explicit route because it makes having other associated routes cleaner.
[1:25]
So, /lists
goes to the lists.index
route, /lists/new
goes to the lists.new
route. This also helps with /list/:id
and /list/:id/edit
etcetera.
Hey @gaand it looks like you've modified this to create an index route instead of a
lists
route. I kind of think it should belists
so that we know what data is getting pulled in by the model hook. Arguments? Reason for changing? Beuler?