Better HN
topnewbestaskshowjobs
Log inSign up

pmaccart

1 karma · joined Apr 27, 2012 (14y ago) · 2 submissions

Submissions

comment 13y ago · link · parent

Thanks -- I had tried going down the requirejs route with all controllers loaded into a 'controllers' module, directives into a 'directives' module, etc., and felt like I was writing way more boilerplate code than should be necessary with a framework like Angular. I'll have to revisit using requirejs with more of a page/functionality-oriented structure.

comment 13y ago · link · parent

One of the issues I struggled with while toying around with AngularJS was how to load the many scripts (controllers, directives, etc.). Is there any suggested reading out there on how to perform this without just including a bunch of script tags on the page? Or, is this considered more of a build tool problem, where the scripts should all be concatenated, then loaded as a single file?