AngularJS

All AngularJS articles

MVC turned component architecture. Best practices and the latest scoop.

Should you learn Angular 1.x or 2?

A question that I’m frequently asked, “should I learn Angular 1 or 2?”. ...

Angular 1.6 is here, this is what you need to know

AngularJS 1.6 was just released! Here’s the low down on what to expect f...

Modern Angular 1.x essential interview questions

AngularJS 1.x has changed a lot with version 1.5 introducing .component(...

The future for Angular 1.x, what next?

Angular 2 is upon us, and with the new approach the Angular team are tak...

Documenting your Angular app using Dgeni in 10 easy steps

The following is a guest post by @sebastpelletier. Don’t hate on me, as ...

All about $q and Promises in Angular

You’ve seen $q, maybe used it, but haven’t uncovered some of the awesome...

A new Angular 1.x ES2015 styleguide, the path to Angular 2

As many of you know, I created an AngularJS (1.x) styleguide back in Jul...

Lifecycle hooks in Angular 1.5

Lifecycle hooks are simply functions that get called at specific points ...

Angular .service() or .factory(), the actual answer

I was giving a workshop earlier this week, and as the workshop came to a...

$onInit and new "require" Object syntax in Angular components

The component() helper method shipped with so many great features to tak...

Stateless Angular components

There were a tonne of interesting changes happening in the beta and rele...

One-way data-binding in Angular 1.5

Angular is known for its powerful two-way data-binding, but with the new...

Angular modules, setters, getters and bootstrapping

The first place you’ll usually start in any Angular application or modul...

Using Controller $filters to prevent $digest performance issues

Filters in Angular massively contribute to slow performance, so let’s ad...

Resolve promises in Angular routes

Phase 1 of our Angular careers involved $http inside a Controller. Phase...

Directive to Directive communication with "require"

Communication between Directives can be done in various ways. When deali...

Dynamic Controllers in Directives with the undocumented "name" property

Assigning Controllers to Angular Directives is the norm when building ou...

Angular component() method back-ported to 1.3+

AngularJS 1.5 is soon to release the component() method which I wrote ab...

Exploring the Angular 1.5 .component() method

AngularJS 1.5 introduced the .component() helper method, which is much s...

Superfast Angular: use ngModelOptions to limit $digest cycles

The $digest cycle is the critical entity for keeping our Angular applica...

Moving from ngModel.$parsers /ng-if to ngModel.$validators /ngMessages

Implementing custom Model validation is typically done by extending the ...

No $scope soup, bindToController in AngularJS

Namespacing, code consistency and proper design patterns really matter i...

A better way to $scope, angular.extend, no more “vm = this”

The evolution of Angular Controllers has changed over the last year. As ...

Killing it with Angular Directives; Structure and MVVM

In this post I’m going to outline my approach on writing Directives for ...

AngularJS one-time binding syntax

Angular 1.3 shipped with an awesome new performance enhancing feature - ...

Opinionated AngularJS styleguide for teams

After reading Google’s AngularJS guidelines, I felt they were a little t...

Angular’s dependency injection annotation process

For those familiar with Angular’s dependency injection (DI), this post w...

Minimal Angular module/syntax approach using an IIFE

Since day one using Angular, I’ve always debated on how I should be exte...

Understanding Angular’s $scope and $rootScope event system $emit, $broadcast and $on

Angular’s $emit, $broadcast and $on fall under the common “publish/subsc...

Rethinking AngularJS Controllers

Note: please don’t use this approach anymore, use Components and one-way...

Everything about custom filters in AngularJS

Angular filters are one of the toughest concepts to work with. They’re a...

Digging into Angular’s “Controller as” syntax

AngularJS Controllers have recently gone under some changes (version 1.2...

Creating an AngularJS Directive from one of your existing plugins/scripts

Writing scripts for your websites or web apps is often a simple process,...

Ultimate guide to learning AngularJS in one day

Angular is a client-side MVC/MVVM framework built in JavaScript, essenti...