I'm Todd, I teach the world Angular through @UltimateAngular. Conference speaker and Developer Expert at Google.

Angular’s dependency injection annotation process

For those familiar with Angular’s dependency injection (DI), this post will dive into some of the “under the hood” methods that power the DI process. For those who aren’t familiar...

Read more Angular’s dependency injection annotation process

Web Components and concepts, ShadowDOM, imports, templates, custom elements

Web Components, the future of the web, inspired from attending Google I/O I decided to pick up Web Components and actually build something. Since learning the basics around a year...

Read more Web Components and concepts, ShadowDOM, imports, templates, custom elements

Methods to determine if an Object has a given property

There are multiple ways to detect whether an Object has a property. You’d think it’d be as easy as myObject.hasOwnProperty('prop'); - but no, there are a few different ways with...

Read more Methods to determine if an Object has a given property

Minimal Angular module/syntax approach using an IIFE

Since day one using Angular, I’ve always debated on how I should be extending modules. This post talks through some common Angular patterns, from variable to chaining and a variant....

Read more Minimal Angular module/syntax approach using an IIFE

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, in which you’d publish an event and subscribe/unsubscribe to it somewhere else. The Angular event...

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

Rethinking AngularJS Controllers

Note: please don’t use this approach anymore, use Components and one-way dataflow Last month Jonathan Creamer wrote an awesome article on Angular and MVC, The state of AngularJS Controllers. The...

Read more Rethinking AngularJS Controllers

What (function (window, document, undefined) {})(window, document); really means

Interestingly enough I get asked about the IIFE (immediately-invoked function expression) a lot, which takes the following setup: (function (window, document, undefined) { // })(window, document); So why not write...

Read more What (function (window, document, undefined) {})(window, document); really means

Understanding JavaScript types and reliable type checking

Type checking in JavaScript can often be a pain, especially for new JS developers. I want to show you how to reliably check types in JS and understand them a...

Read more Understanding JavaScript types and reliable type checking

Everything about custom filters in AngularJS

Angular filters are one of the toughest concepts to work with. They’re a little misunderstood and it actually hurt my brain whilst learning them. Filters are insanely great, they’re very...

Read more Everything about custom filters in AngularJS

Digging into Angular’s “Controller as” syntax

AngularJS Controllers have recently gone under some changes (version 1.2 to be precise). What this means for scopes, Controllers and Angular development is some very subtle but powerful changes. One...

Read more Digging into Angular’s “Controller as” syntax