import { Component , OnInit , ViewChild } from '@angular/core' ; import { ImprintAndInfoService } from '../../shared/services/imprint-and-info.service' ; import { TitleService } from '../../shared/services/title.service' ; @ Component ( { selector : 'app-imprint' , templateUrl : './legalnotice.component.html' , styleUrls : [ './legalnotice.component.scss' ] } ) export class LegalnoticeComponent implements OnInit { renderedContent : string ; constructor ( private imprintService , private titleService ) { } ngOnInit ( ) { this . titleService . setTitle ( 'Legalnotice' ) ; this . getData ( ) ; } async getData ( ) { this . renderedContent = await this . imprintService . loadConfig ( 'legalnotice' ) ; } }