Use injectorBridge

pull/6827/head
Oliver Günther 8 years ago
parent 0e9cefb4f8
commit 2a5d6f18d6
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 5
      frontend/app/components/wp-display/field-types/wp-display-costs-by-type-field.module.ts

@ -45,14 +45,13 @@ interface ICostsByType {
export class CostsByTypeDisplayField extends DisplayField {
private wpCacheService:WorkPackageCacheService;
public wpCacheService:WorkPackageCacheService;
constructor(public resource:HalResource,
public name:string,
public schema) {
super(resource, name, schema);
this.wpCacheService = <WorkPackageCacheService> this.$injector.get('wpCacheService');
this.loadIfNecessary();
}
@ -79,3 +78,5 @@ export class CostsByTypeDisplayField extends DisplayField {
this.value.elements.length === 0;
}
}
CostsByTypeDisplayField.$inject = ['wpCacheService'];

Loading…
Cancel
Save