diff --git a/utils/authors/showAuthors.component.ts b/utils/authors/showAuthors.component.ts index e7fe762a..b574d87d 100644 --- a/utils/authors/showAuthors.component.ts +++ b/utils/authors/showAuthors.component.ts @@ -1,8 +1,9 @@ -import {Component, Input} from '@angular/core'; +import {Component, Inject, Input, PLATFORM_ID} from '@angular/core'; import {ActivatedRoute} from "@angular/router"; import {HelperFunctions} from '../HelperFunctions.class'; import {RouterHelper} from "../routerHelper.class"; import {EnvProperties} from '../properties/env-properties'; +import {isPlatformBrowser} from "@angular/common"; @Component({ selector: 'showAuthors', @@ -13,8 +14,8 @@ import {EnvProperties} from '../properties/env-properties'; - {{author.fullName}} {{" "}}{{author.fullName}}{{author.fullName}} {{" "}}{{author.fullName}}
{{author.fullName}} @@ -92,7 +93,11 @@ export class ShowAuthorsComponent { public properties:EnvProperties; public routerHelper:RouterHelper = new RouterHelper(); - constructor (private route: ActivatedRoute) {} + testBrowser: boolean; + + constructor (private route: ActivatedRoute, @Inject(PLATFORM_ID) private platformId: string) { + this.testBrowser = isPlatformBrowser(platformId); + } ngOnInit() { this.route.data.subscribe((data: { envSpecific: EnvProperties }) => {