]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/+home/home.component.ts
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / client / src / app / +home / home.component.ts
... / ...
CommitLineData
1import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
2import { CustomPageService } from '@app/shared/shared-main/custom-page'
3
4@Component({
5 templateUrl: './home.component.html'
6})
7
8export class HomeComponent implements OnInit {
9 @ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement>
10
11 homepageContent: string
12
13 constructor (
14 private customPageService: CustomPageService
15 ) { }
16
17 ngOnInit () {
18 this.customPageService.getInstanceHomepage()
19 .subscribe(({ content }) => this.homepageContent = content)
20 }
21}