added @ngInject support for inline functions