Scope creep, a deep dive into Angular's scope

Getting used to the concept of scope in Angular is among the more difficult concepts to fully grok when first being introduced to the magical land of Angular. Like anything else though, "once you understand it, it's really not that bad"... $rootScope This is the mother of all scopes. Quite…

Object literals and prototypes in JavaScript

You think you know JavaScript and then little things like this happen... My co-worker Aaron who is a Visual Design Engineer is in the process of learning JavaScript and he asked me to have a look at a Fiddle. The contents of the fiddle looked like this... function Pizza (type…

Understanding Angular.js services the easy way

One of the difficulties when first learning angular is understanding services and what they really are. One of the problem with services is there are several different ways to create one. This leads to many people saying which one should I choose? There's been over 131k views on this Stack…

The state of angularjs controllers

Angular.js is based on the ever popular MVC architecture pattern. However, like many other JavaScript frameworks, MVC can very easily be muddied up and misused. Understanding the framework you're using, whether that be Angular, Backbone, etc, and how the different M-V-? pieces work together is important to the maintainability…

An angular.js event bus with postal.js

Ideally in an angular application, controllers are independent units of code that have no reference to any other controllers. There are cases though in which you may need to communicate with other controllers in your application. For example you may have an Orders controller, that needs to tell a Cart…

Epic return to the wonderful land of appendTo

The last 5 months of my life have been filled with great things while working for the startup over at Tech.pro. Sometimes good things don't last super long though, and today is my first day back with my great friends at appendTo. In the last few months I've gotten…