Migration to angular 1.2.0rc1