Angular 1.3 migration