Re:My love affair with AngularJS
by marknutter on Tuesday February 04, 2014 @08:48PM
(#7181434)
I do it both ways. Major features I pull out into a features folder, but the main skeleton of the app I keep in monolithic controller/directive/services files (or folders if necessary). It encourages me to keep my controllers skinny while providing a place for shared logic to live. It's a good compromise.
[ Parent
| on HN ]
Re:My love affair with AngularJS
by WalterSear on Wednesday February 05, 2014 @05:29PM
(#7187301)
I missed out a part of what I do - in order to properly encapsulate and test functionalities within services, they are built out of smaller services that I can test individually, and these get their own directory folders and trees, so long as they are dependencies of an individual service.