make work with angular 1.0