]>
Commit | Line | Data |
---|---|---|
1 | import { Component, ElementRef, OnInit, ViewChild } from '@angular/core' | |
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 | ||
12 | homepageContent: string | |
13 | ||
14 | constructor ( | |
15 | private customPageService: CustomPageService | |
16 | ) { } | |
17 | ||
18 | ngOnInit () { | |
19 | this.customPageService.getInstanceHomepage() | |
20 | .subscribe(({ content }) => this.homepageContent = content) | |
21 | } | |
22 | } |