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

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 AngularJS form models, such as a simple <input>. Prior to Angular 1.3, custom validation was...

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

No $scope soup, bindToController in AngularJS

Namespacing, code consistency and proper design patterns really matter in software engineering, and Angular addresses a lot of issues we face as front-end engineers really nicely. I’d like to show...

Read more No $scope soup, bindToController in AngularJS

Being a healthy software engineer

A post a little off topic today, but after a few tweets of mine a few people have suggested a write up on what changes I’ve made and how they’ve...

Read more Being a healthy software engineer

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 of us are working with the most recent addition to “Controller” syntax with the controllerAs...

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

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 releases. There’s a lot of confusion around how and why and where to do things...

Read more Killing it with Angular Directives; Structure and MVVM

ES6 arrow functions, syntax and lexical scoping

ES2015 (ES6) introduces a really nice feature that punches above its weight in terms of simplicity to integrate versus time saving and feature output. This feature is the arrow function....

Read more ES6 arrow functions, syntax and lexical scoping

AngularJS one-time binding syntax

Angular 1.3 shipped with an awesome new performance enhancing feature - one-time binding. What does this mean for us Angular developers and the performance of our apps? A lot! For...

Read more AngularJS one-time binding syntax

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