2021-12-17 15:57:11 +01:00
|
|
|
import { Component, OnInit } from "@angular/core";
|
2018-06-08 23:08:19 +02:00
|
|
|
|
2021-12-17 15:57:11 +01:00
|
|
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
2018-06-11 15:31:11 +02:00
|
|
|
|
2018-06-08 23:08:19 +02:00
|
|
|
@Component({
|
2021-12-17 15:57:11 +01:00
|
|
|
selector: "app-footer",
|
|
|
|
templateUrl: "footer.component.html",
|
2018-06-08 23:08:19 +02:00
|
|
|
})
|
2018-06-11 15:31:11 +02:00
|
|
|
export class FooterComponent implements OnInit {
|
2021-12-17 15:57:11 +01:00
|
|
|
version: string;
|
2022-02-24 12:10:07 +01:00
|
|
|
year = "2015";
|
2018-06-11 15:31:11 +02:00
|
|
|
|
2021-12-17 15:57:11 +01:00
|
|
|
constructor(private platformUtilsService: PlatformUtilsService) {}
|
2018-06-11 15:31:11 +02:00
|
|
|
|
2021-12-17 15:57:11 +01:00
|
|
|
async ngOnInit() {
|
|
|
|
this.year = new Date().getFullYear().toString();
|
|
|
|
this.version = await this.platformUtilsService.getApplicationVersion();
|
|
|
|
}
|
2018-06-11 15:31:11 +02:00
|
|
|
}
|