mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-27 04:03:00 +02:00
20 lines
540 B
TypeScript
20 lines
540 B
TypeScript
import { Component, OnInit } from "@angular/core";
|
|
|
|
import { PlatformUtilsService } from "@bitwarden/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();
|
|
}
|
|
}
|