]>
Commit | Line | Data |
---|---|---|
2539932e | 1 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core' |
2539932e C |
2 | import { CustomPageService } from '@app/shared/shared-main/custom-page' |
3 | ||
4 | @Component({ | |
4158e67c | 5 | templateUrl: './home.component.html' |
2539932e C |
6 | }) |
7 | ||
8 | export class HomeComponent implements OnInit { | |
9 | @ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement> | |
10 | ||
8ee25e17 C |
11 | homepageContent: string |
12 | ||
2539932e | 13 | constructor ( |
2539932e C |
14 | private customPageService: CustomPageService |
15 | ) { } | |
16 | ||
98ab5dc8 | 17 | ngOnInit () { |
2539932e | 18 | this.customPageService.getInstanceHomepage() |
8ee25e17 | 19 | .subscribe(({ content }) => this.homepageContent = content) |
2539932e C |
20 | } |
21 | } |