using ng-1.2.0