mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
30 lines
626 B
TypeScript
30 lines
626 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { Title } from '@angular/platform-browser';
|
|
import { environment } from 'src/environments/environment';
|
|
|
|
@Component({
|
|
selector: 'app-page-header',
|
|
templateUrl: './page-header.component.html',
|
|
styleUrls: ['./page-header.component.scss']
|
|
})
|
|
export class PageHeaderComponent {
|
|
|
|
constructor(private titleService: Title) { }
|
|
|
|
_title = ""
|
|
|
|
@Input()
|
|
set title(title: string) {
|
|
this._title = title
|
|
this.titleService.setTitle(`${this.title} - ${environment.appTitle}`)
|
|
}
|
|
|
|
get title() {
|
|
return this._title
|
|
}
|
|
|
|
@Input()
|
|
subTitle: string = ""
|
|
|
|
}
|