]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+home/home.component.ts
Refactoring margin and padding mixins
[github/Chocobozzz/PeerTube.git] / client / src / app / +home / home.component.ts
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 })
7
8 export 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 }