This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable, RendererFactory2, ViewEncapsulation, Inject } from '@angular/core'; | |
| import { DOCUMENT } from '@angular/common'; | |
| @Injectable() | |
| export class LinkService { | |
| private renderer: any; | |
| constructor(private rendererFactory: RendererFactory2, | |
| @Inject(DOCUMENT) private document) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private setTitle(title: string) { | |
| let fullTitle = this.config.seo.title; | |
| if (title && title.length) { | |
| fullTitle = `${title} - ` + this.config.seo.title; | |
| } | |
| this.titleService.setTitle(fullTitle); | |
| if (this.isNode) { | |
| this.metaService.addTags([ |