PeerTube/client/src/app/+home/home.component.ts
Chocobozzz 338633ce72
Remove barrels
They can prevent tree shaking
2024-03-05 10:52:32 +01:00

26 lines
807 B
TypeScript

import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
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',
styleUrls: [ './home.component.scss' ],
standalone: true,
imports: [ CustomMarkupContainerComponent ]
})
export class HomeComponent implements OnInit {
@ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement>
homepageContent: string
constructor (
private customPageService: CustomPageService
) { }
ngOnInit () {
this.customPageService.getInstanceHomepage()
.subscribe(({ content }) => this.homepageContent = content)
}
}