trying to figure out the angular 1.2 changes