1
0
mirror of https://github.com/bitwarden/web synced 2026-01-07 11:03:16 +00:00
Files
web/src/app/layouts/footer.component.ts
2022-02-24 12:10:07 +01:00

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();
}
}