Backward compatible with angular-1.0.7