Todd Motto

Todd Motto

Owner, Ultimate Angular

AngularJS

All articles on AngularJS (1.x), beginner and advanced posts

Jan 20, 2017

Should you learn Angular 1.x or 2?

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

Dec 6, 2016

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 for the...

Nov 4, 2016

The future for Angular 1.x, what next?

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

Sep 30, 2016

Documenting your Angular app using Dgeni in 10 easy steps

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

Aug 15, 2016

All about $q and Promises in Angular

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

Jun 13, 2016

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 July 2014,...

Jun 3, 2016

Lifecycle hooks in Angular 1.5

Lifecycle hooks are simply functions that get called at specific points of a component’s life...

Mar 11, 2016

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

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

Feb 11, 2016

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

The component() helper method shipped with so many great features to take us even closer...

Feb 8, 2016

Stateless Angular components

There were a tonne of interesting changes happening in the beta and release candidate phases...

Feb 5, 2016

One-way data-binding in Angular 1.5

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

Dec 21, 2015

Angular modules, setters, getters and bootstrapping

The first place you’ll usually start in any Angular application or module library, is creating...

Dec 15, 2015

Using Controller $filters to prevent $digest performance issues

Filters in Angular massively contribute to slow performance, so let’s adopt a sensible way of...

Dec 14, 2015

Resolve promises in Angular routes

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

Dec 14, 2015

Directive to Directive communication with "require"

Communication between Directives can be done in various ways. When dealing with Directives that have...

Dec 10, 2015

Dynamic Controllers in Directives with the undocumented "name" property

Assigning Controllers to Angular Directives is the norm when building out components. But what if...

Dec 7, 2015

Angular component() method back-ported to 1.3+

AngularJS 1.5 is soon to release the component() method which I wrote about last month....

Nov 13, 2015

Exploring the Angular 1.5 .component() method

AngularJS 1.5 introduced the .component() helper method, which is much simpler than the .directive() definition...

Oct 24, 2015

Superfast Angular: use ngModelOptions to limit $digest cycles

The $digest cycle is the critical entity for keeping our Angular applications fast: the faster...

Oct 18, 2015

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

Implementing custom Model validation is typically done by extending the built-in $error Object bound to...

Jul 21, 2015

No $scope soup, bindToController in AngularJS

Namespacing, code consistency and proper design patterns really matter in software engineering, and Angular addresses...

Apr 20, 2015

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

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

Apr 17, 2015

Killing it with Angular Directives; Structure and MVVM

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

Dec 12, 2014

AngularJS one-time binding syntax

Angular 1.3 shipped with an awesome new performance enhancing feature - one-time binding. What does...

Jul 23, 2014

Opinionated AngularJS styleguide for teams

After reading Google’s AngularJS guidelines, I felt they were a little too incomplete and also...

Jul 11, 2014

Angular’s dependency injection annotation process

For those familiar with Angular’s dependency injection (DI), this post will dive into some of...

Jun 17, 2014

Minimal Angular module/syntax approach using an IIFE

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

Jun 11, 2014

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

Angular’s $emit, $broadcast and $on fall under the common “publish/subscribe” design pattern, or can do,...

Jun 9, 2014

Rethinking AngularJS Controllers

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

May 28, 2014

Everything about custom filters in AngularJS

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

May 26, 2014

Digging into Angular’s “Controller as” syntax

AngularJS Controllers have recently gone under some changes (version 1.2 to be precise). What this...

Oct 7, 2013

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

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

Oct 2, 2013

Ultimate guide to learning AngularJS in one day

Angular is a client-side MVC/MVVM framework built in JavaScript, essential for modern single page web...