import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class ArrowService { private _mediator: any; private _uikit:any; private _translations:any; public get mediator(){ const arrowObject = (window).Arrow; if(arrowObject){ this._mediator = arrowObject.mediator; } return this._mediator || ''; } public get uikit(){ const arrowObject = (window).Arrow; if(arrowObject){ this._uikit = arrowObject.uikit; } return this._uikit || ''; } public get translations(){ const arrowObject = (window).Arrow; if(arrowObject){ this._translations = arrowObject.translations; } return this._translations || ''; } /** * Sets a value in the user session store */ setSessionStorageValue(key: string, value: string): void { sessionStorage.setItem(key, value); } }