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

React.createClass versus extends React.Component

Two ways to do the same thing. Almost. React traditionally provided the React.createClass method to create component classes, and released a small syntax sugar update to allow for better use...

Read more React.createClass versus extends React.Component

Stateless React components

React v0.14.0 introduces “stateless” components, which takes a more functional approach to creating chunks of JSX and templates. In my previous article on creating a tab component I created the...

Read more Stateless React components

Creating a tabs component with React

I have to say, this is my first proper component built in React. I tried it out last year and absolutely loved it. Feel free to rip this component apart,...

Read more Creating a tabs component with React

Angular modules, setters, getters and bootstrapping

The first place you’ll usually start in any Angular application or module library, is creating a module. Let’s walk through the syntax differences between creating a module (a setter) and...

Read more Angular modules, setters, getters and bootstrapping

A year in review of toddmotto​.com

2015 was a crazy year for me, a lot happened and much of it is down to this blog and you as a wonderful reader/sharer of my content. I’ve grown...

Read more A year in review of toddmotto​.com

Using Controller $filters to prevent $digest performance issues

Filters in Angular massively contribute to slow performance, so let’s adopt a sensible way of doing things, which may take you an additional ten minute to code, but will dramatically...

Read more Using Controller $filters to prevent $digest performance issues

Resolve promises in Angular routes

Phase 1 of our Angular careers involved $http inside a Controller. Phase 2 involved abstracting into a Service and calling the Service inside a Controller. Phase 3 is the resolve...

Read more Resolve promises in Angular routes

Directive to Directive communication with "require"

Communication between Directives can be done in various ways. When dealing with Directives that have a hierarchical relationship we can use Directive Controllers to talk between them. In this article...

Read more Directive to Directive communication with

Dynamic Controllers in Directives with the undocumented "name" property

Assigning Controllers to Angular Directives is the norm when building out components. But what if you wanted to dynamically assign a Controller to the same Directive and template? There are...

Read more Dynamic Controllers in Directives with the undocumented

Angular component() method back-ported to 1.3+

AngularJS 1.5 is soon to release the component() method which I wrote about last month. I decided to back-port the functionality from the new feature so anyone running AngularJS 1.3...

Read more Angular component() method back-ported to 1.3+