2021-05-27 15:59:55 +02:00
|
|
|
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
|
2024-03-04 10:01:52 +01:00
|
|
|
import { CustomMarkupContainerComponent } from '../shared/shared-custom-markup/custom-markup-container.component'
|
2024-03-05 09:30:12 +01:00
|
|
|
import { CustomPageService } from '@app/shared/shared-main/custom-page/custom-page.service'
|
2021-05-27 15:59:55 +02:00
|
|
|
|
|
|
|
@Component({
|
2024-02-20 11:33:01 +01:00
|
|
|
templateUrl: './home.component.html',
|
2024-03-04 10:01:52 +01:00
|
|
|
styleUrls: [ './home.component.scss' ],
|
|
|
|
standalone: true,
|
|
|
|
imports: [ CustomMarkupContainerComponent ]
|
2021-05-27 15:59:55 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
export class HomeComponent implements OnInit {
|
|
|
|
@ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement>
|
|
|
|
|
2021-05-31 11:33:49 +02:00
|
|
|
homepageContent: string
|
|
|
|
|
2021-05-27 15:59:55 +02:00
|
|
|
constructor (
|
|
|
|
private customPageService: CustomPageService
|
|
|
|
) { }
|
|
|
|
|
2021-08-25 16:14:11 +02:00
|
|
|
ngOnInit () {
|
2021-05-27 15:59:55 +02:00
|
|
|
this.customPageService.getInstanceHomepage()
|
2021-05-31 11:33:49 +02:00
|
|
|
.subscribe(({ content }) => this.homepageContent = content)
|
2021-05-27 15:59:55 +02:00
|
|
|
}
|
|
|
|
}
|