]>
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({ | |
5 | templateUrl: './home.component.html', | |
6 | styleUrls: [ './home.component.scss' ] | |
7 | }) | |
8 | ||
9 | export class HomeComponent implements OnInit { | |
10 | @ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement> | |
11 | ||
8ee25e17 C |
12 | homepageContent: string |
13 | ||
2539932e | 14 | constructor ( |
2539932e C |
15 | private customPageService: CustomPageService |
16 | ) { } | |
17 | ||
98ab5dc8 | 18 | ngOnInit () { |
2539932e | 19 | this.customPageService.getInstanceHomepage() |
8ee25e17 | 20 | .subscribe(({ content }) => this.homepageContent = content) |
2539932e C |
21 | } |
22 | } |