AngularJS: A Retrospective
mutuallyhuman.com
mutuallyhuman.com
No one is forcing you to like coffeescript, but it's completely unnecessary to complain about every single example or blog post that uses it.
No. Controllers should not be used for DOM manipulation. Angular directives take some learning, but they're great. It basically turns DOM node selection into a matter of Dependency Injection. I think it's an exaggeration to say that directives require "deep knowledge of AngularJS' (sic) internals".
Use ui-router. It allows multiple views and uses states for URL routing. It's a little tricky to understand at first, but once you internalize how states work it makes structuring your app very easy. Be prepared to rewrite parts of your projects multiple times until you actually get it.
The $resource service is also not as well designed as it could be. I'm thinking of moving to restangular.
getting rid of the dirty checking? yes please. etc..
Service should be like this: .service('RemoteResource', function($http){ this.retrieve = function(){ $http.get("url"); } })
See Stackoverflow: http://stackoverflow.com/questions/15666048/angular-js-servi...