AngularJs 1.x
The ‘controller ngModel required by directive’ error can be confusing when you first come across it, particularly if you get it when running your unit tests. But it’s a simple fix, and [...]
AngularJs 1.x
Larger Angular apps can be difficult to setup due to the many moving parts involved. Various Angular seed apps exist that provide some of the boilerplate code involved, to help you develop your app more [...]
AngularJs 1.x
It’s best practice to place the HTML of a directive’s partial within its own file, and reference it in the directive’s definition object via the templateUrl property. However, this causes [...]
AngularJs 1.x
AngularJS’s promises library ($q) provides two different patterns for handling success and failure: the callback pattern and the promise chain pattern (promise.then().catch()). In this article, we’ll [...]
AngularJs 1.x
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!
AngularJs 1.x
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.
AngularJs 1.x
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.