From 2a5d6f18d637715e1620dc84328913f75368c289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 8 Feb 2017 18:33:11 +0100 Subject: [PATCH] Use injectorBridge --- .../field-types/wp-display-costs-by-type-field.module.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/wp-display/field-types/wp-display-costs-by-type-field.module.ts b/frontend/app/components/wp-display/field-types/wp-display-costs-by-type-field.module.ts index 53160edb64..d300cff4e0 100644 --- a/frontend/app/components/wp-display/field-types/wp-display-costs-by-type-field.module.ts +++ b/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 = this.$injector.get('wpCacheService'); this.loadIfNecessary(); } @@ -79,3 +78,5 @@ export class CostsByTypeDisplayField extends DisplayField { this.value.elements.length === 0; } } + +CostsByTypeDisplayField.$inject = ['wpCacheService'];