fix year in frontend footer

This commit is contained in:
Kyle Spearrin 2019-01-29 12:52:11 -05:00
parent 378b4bb8c1
commit 459bc69032
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<router-outlet></router-outlet>
<div class="container my-5 text-muted text-center">
&copy; 2018, 8bit Solutions LLC
&copy; {{year}}, 8bit Solutions LLC
<br> {{'versionNumber' | i18n : version}}
</div>

View File

@ -12,10 +12,12 @@ import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
})
export class FrontendLayoutComponent implements OnInit, OnDestroy {
version: string;
year: string = '2015';
constructor(private platformUtilsService: PlatformUtilsService) { }
ngOnInit() {
this.year = new Date().getFullYear().toString();
this.version = this.platformUtilsService.getApplicationVersion();
document.body.classList.add('layout_frontend');
}