This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
footer.component.ts 624 B
Newer Older
Eduard Frankford's avatar
Eduard Frankford committed
import { Component, OnInit } from '@angular/core';
import { ApplicationInfoService, DeploymentInfo } from 'app/core/application/applicationInfo.service';
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed

@Component({
  selector: 'jhi-footer',
  templateUrl: './footer.component.html',
})
Eduard Frankford's avatar
Eduard Frankford committed
export class FooterComponent implements OnInit {
  deploymentInfo?: DeploymentInfo;

  constructor(public applicationInfoService: ApplicationInfoService) {}
Eduard Frankford's avatar
Eduard Frankford committed
  ngOnInit(): void {
Michael Breu's avatar
Michael Breu committed
    this.applicationInfoService.onDeploymentInfoChanged().subscribe(depInfo => {
      this.deploymentInfo = depInfo;
    });
Eduard Frankford's avatar
Eduard Frankford committed
    this.deploymentInfo = this.applicationInfoService.getDeploymentInfo();
  }