it should be compatible with angular 1.3.X