Re:AngularJS Tutorial: Learn to Build Modern Web Apps
by Rodeoclash on Wednesday September 04, 2013 @07:28PM
(#6331202)
Can you give an example of how you've organised the modules? Like one per model (a products module) or by section of the site?
[ Parent
| on HN ]
Re:AngularJS Tutorial: Learn to Build Modern Web Apps
by rs on Wednesday September 04, 2013 @08:01PM
(#6331335)
If I'm not mistaken, instead of splitting into:
controllers/
users.js
teams.js
models/
user.js
team.js
Just have: modules/
users.js
teams.js
Where model and controllers for each function is defined within a single file.I've switched to this convention as well - less context switching of files.