20 lines
535 B
TypeScript
20 lines
535 B
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
|
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
|
|
|
@Component({
|
|
selector: "app-footer",
|
|
templateUrl: "footer.component.html",
|
|
})
|
|
export class FooterComponent implements OnInit {
|
|
version: string;
|
|
year = "2015";
|
|
|
|
constructor(private platformUtilsService: PlatformUtilsService) {}
|
|
|
|
async ngOnInit() {
|
|
this.year = new Date().getFullYear().toString();
|
|
this.version = await this.platformUtilsService.getApplicationVersion();
|
|
}
|
|
}
|