1
0
mirror of https://github.com/bitwarden/web synced 2025-12-30 15:13:21 +00:00
Files
web/src/app/layouts/footer.component.ts
Oscar Hinton b12d0387f6 Add jslib as a "real" dependency (#951)
* Add jslib as a dependency

* Cleanup tsconfig, webpack, add jslib-angular to package.json

* Update all import paths

* Add back @types/node.

* Lint

* Remove dummy module

* Remove merge conflict

* Group imports

* Bump jslib
2021-06-07 20:13:58 +02:00

23 lines
575 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: string = '2015';
constructor(private platformUtilsService: PlatformUtilsService) { }
async ngOnInit() {
this.year = new Date().getFullYear().toString();
this.version = await this.platformUtilsService.getApplicationVersion();
}
}