Angular 1.2 compatibility