Why ng-controller is an AntiPattern
ng-controller is used to bind a scope to an element in your HTML. But for large applications, it's an Anti-Pattern that will cause all manner of pain. Avoid!
ng-controller is used to bind a scope to an element in your HTML. But for large applications, it's an Anti-Pattern that will cause all manner of pain. Avoid!
When creating an AngularJS app, you split your page's HTML up into fragments with ng-view, ng-includes, and the partials in directives. In this post, we'll look at what fragments go where.
In this first article on AngularJS's promises, we look at the relationship between the defer object and its promise, and show how the promise's functions are triggered by the deferred object.