Fixes compatibility. Adds support for Angular 1.2.*