switching to depend more loosely on angular 1.2