require angular 1.2+