PeerTube/client/src/app/+home/home.component.ts

26 lines
807 B
TypeScript
Raw Normal View History

import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
2024-03-04 10:01:52 +01:00
import { CustomMarkupContainerComponent } from '../shared/shared-custom-markup/custom-markup-container.component'
import { CustomPageService } from '@app/shared/shared-main/custom-page/custom-page.service'
@Component({
templateUrl: './home.component.html',
2024-03-04 10:01:52 +01:00
styleUrls: [ './home.component.scss' ],
standalone: true,
imports: [ CustomMarkupContainerComponent ]
})
export class HomeComponent implements OnInit {
@ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement>
homepageContent: string
constructor (
private customPageService: CustomPageService
) { }
2021-08-25 16:14:11 +02:00
ngOnInit () {
this.customPageService.getInstanceHomepage()
.subscribe(({ content }) => this.homepageContent = content)
}
}