back

by wiradikusuma·14y ago·view on hn ↗
but not small enough. i just recently 'convert' from backbone to angular, so i'm bias. but i dont understand why on earth the js needs to be seperated instead of everything in 1 js file. only then people can say, "is this all? wow!" and i cant help but wonder why the actions need to be in 'form' element. angular can do ng-click just fine.
1 comments
Check out http://jsfiddle.net/api/post/library/pure/, it uses a single file for the entire angular app. From my experience, spreading services, controllers, etc over multiple files is just for convenience.
Bah, ignore that. Try out the JSFiddle linked for the "Wire up a Backend" example on http://angularjs.org/