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

Polyfills suck, use a featurefill instead

I’m going to dub this a featurefill as the post title suggests, but it’s more a feature-detect-closure-binding-smart-polyfill-api-checker-reusable-function-awesomeness. So, what’s the deal?… I’m a huge fan of polyfilling behaviour for older...

Read more Polyfills suck, use a featurefill instead

Opinionated AngularJS styleguide for teams

After reading Google’s AngularJS guidelines, I felt they were a little too incomplete and also guided towards using the Closure library. They also state “We don’t think this makes sense...

Read more Opinionated AngularJS styleguide for teams

Replacing switch statements with Object literals

In many programming languages, the switch statement exists - but should it any longer? If you’re a JavaScript programmer, you’re often jumping in and out of Objects, creating, instantiating and...

Read more Replacing switch statements with Object literals

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