-
jojohoch authored
- Use the VeroSubscriptionService as a pure communication service - Do not contaminate the VeroSubscriptionService with holding data
jojohoch authored- Use the VeroSubscriptionService as a pure communication service - Do not contaminate the VeroSubscriptionService with holding data
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
meta-data.service.ts 637 B
import { Inject, Injectable } from '@angular/core';
import { DOCUMENT } from '@angular/common';
import { VopMetaData } from 'player/modules/verona/models/verona';
@Injectable({
providedIn: 'root'
})
export class MetaDataService {
playerMetadata!: VopMetaData;
resourceURL: string | undefined;
constructor(@Inject(DOCUMENT) private document: Document) {
const playerMetadata: string | null | undefined = document.getElementById('meta_data')?.textContent;
if (playerMetadata) {
this.playerMetadata = JSON.parse(playerMetadata);
}
}
getResourceURL(): string {
return this.resourceURL || 'assets';
}
}