Compatibility with Angularjs 1.3