Refactor HalLink a little

pull/4522/head
Alex Dik 9 years ago
parent b4e0337848
commit b9096fb189
  1. 10
      frontend/app/components/api/api-v3/hal-link/hal-link.service.ts

@ -26,6 +26,8 @@
// See doc/COPYRIGHT.rdoc for more details. // See doc/COPYRIGHT.rdoc for more details.
//++ //++
import {opApiModule} from "../../../../angular-modules";
var $q:ng.IQService; var $q:ng.IQService;
var apiV3:restangular.IService; var apiV3:restangular.IService;
@ -77,13 +79,13 @@ export class HalLink implements HalLinkInterface {
} }
} }
function halLink(_$q_:ng.IQService, _apiV3_:restangular.IService) { function halLinkService(_$q_:ng.IQService, _apiV3_:restangular.IService) {
$q = _$q_; $q = _$q_;
apiV3 = _apiV3_; apiV3 = _apiV3_;
return HalLink; return HalLink;
} }
angular halLinkService.$inject = ['$q', 'apiV3'];
.module('openproject.api')
.factory('HalLink', ['$q', 'apiV3', halLink]); opApiModule.factory('HalLink', halLinkService);

Loading…
Cancel
Save