support AngularJS 1.2.0