AltitudeWeb/frontend/src/app/home/home.component.ts

20 lines
572 B
TypeScript
Raw Normal View History

import {Component, OnInit} from '@angular/core';
import {Title} from '@angular/platform-browser';
import {ALTITUDE_VERSION} from '../constant';
@Component({
standalone: false,
selector: 'app-home',
templateUrl: './home.component.html',
styleUrl: './home.component.scss'
})
export class HomeComponent implements OnInit {
constructor(private titleService: Title) {}
ngOnInit(): void {
this.titleService.setTitle('Survival Minecraft Server on ' + ALTITUDE_VERSION + ' | Altitude Community');
}
protected readonly ALTITUDE_VERSION = ALTITUDE_VERSION;
}