Upgraded to angularjs 1.2