News for hackers. Stuff that matters.
Re:Practical AngularJS Examples by diggan on Sunday September 01, 2013 @06:41AM (#6309775)
Use common sense. First step, having the files in one folder. Everything mixed up. You move into a structure of seperating services from directives, controllers from filters and so on. But the way most people seems to be doing it (the Angular way™) when it comes to the bigger applications is by splitting it up by functionality/modules. So you have a forum and therefore probably at least 3 different modules, "thread", "user" and "forum" or something similar. Just follow the MVC pattern with whatever filestructure that works with you and your team.

Copy/pasting the menu bars? For that, I would have a directive which controls the display of the menu and acting accordingly. Only when declaration is needed and it's reusable. I don't understand your point about meaningful urls though, they are as meaningful as you make them.

Re:Practical AngularJS Examples by bsaul on Sunday September 01, 2013 @08:17AM (#6310069)
well using a directive means you still have to put it everywhere ( in all your views). i'm more used to something like a master template with global menus and a content div. but for that you would need multiple ng-views or something similar, since my menu bars also need to be linked to the context.
Re:Practical AngularJS Examples by dchuk on Sunday September 01, 2013 @06:48PM (#6312506)
UI Router solves this problem pretty handily