bitwarden-estensione-browser/src/app/layouts/footer.component.ts

23 lines
575 B
TypeScript
Raw Normal View History

2018-06-08 23:08:19 +02:00
import {
Component,
2018-06-11 15:31:11 +02:00
OnInit,
2018-06-08 23:08:19 +02:00
} from '@angular/core';
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({
selector: 'app-footer',
templateUrl: 'footer.component.html',
})
2018-06-11 15:31:11 +02:00
export class FooterComponent implements OnInit {
version: string;
2018-07-24 03:47:08 +02:00
year: string = '2015';
2018-06-11 15:31:11 +02:00
constructor(private platformUtilsService: PlatformUtilsService) { }
2021-04-07 20:42:57 +02:00
async ngOnInit() {
2018-07-19 18:21:31 +02:00
this.year = new Date().getFullYear().toString();
2021-04-07 20:42:57 +02:00
this.version = await this.platformUtilsService.getApplicationVersion();
2018-06-11 15:31:11 +02:00
}
}