In this post, I want to explore a different approach to writing directives in Angular 1. As we know, building applications in Angular 2 is going to be different from what we're used to in Angular 1. For example, ng-controller will be gone, and components will…
In Angular 1, directives are a way for developers to extend HTML. This means introducing new behaviours to the DOM via custom tags or attributes. You can change what a directive matches by using the restrict option. By default it is set to 'EA', meaning it…
Angular 1.3.0 (superluminal-fudge) has been released! In a previous post, I presented a framework on top of AngularJS 1.2 to handle asynchronous form validations and error message display concerns. This has been made much easier in AngularJS 1.3! In this post…
Throughout your adventures with Angular, you will undoubtedly come across situations where custom directives make sense. These situations typically involve DOM manipulations, or calling a jQuery plugin. However, there are other cases where you may not…
AngularJS has been instrumental in changing the way I develop web applications. From building imperative views where both business logic and user interaction live, to separate controllers and directives that handle both requirements respectively. From sharing…
One of the main benefits of Angular is the ability to easily extend HTML with new behaviours through the use of custom directives. Directives allow developers to match markers in the DOM with the intended behaviours. In this post we'll cover: Why writing…