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

24 lines
586 B
TypeScript
Raw Normal View History

import {Component, Input} from '@angular/core';
import {ALTITUDE_VERSION} from '../constant';
@Component({
standalone: false,
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss']
})
export class HeaderComponent {
@Input() title: string = '';
@Input() sub_title: string = '';
@Input() current_page: string = ''
public getCurrentPageId(options: string[]) {
if (options.includes(this.current_page)) {
return 'current_page'
}
return null;
}
protected readonly ALTITUDE_VERSION = ALTITUDE_VERSION;
}