bugfix(submit) Fix to work with angular 1.2