import { Component , OnInit } from "@angular/core" ; import { LatestChangesDialogService } from "../latest-changes-dialog.service" ; /**
 * Simple component displaying the current app version
 * including functionality to open an info dialog showing the latest change when the user clicks on it.
 */ @ Component ( { selector : "app-version" , templateUrl : "./app-version.component.html" , styleUrls : [ "./app-version.component.scss" ] , } ) export class AppVersionComponent implements OnInit { /** the current app version */ currentVersion : string ; constructor ( private changelogDialog ) { } ngOnInit ( ) { this . currentVersion = this . changelogDialog . getCurrentVersion ( ) ; } /**
     * Open dialog box to display changelog information about the latest version to the user.
     */ public showLatestChanges ( ) { this . changelogDialog . showLatestChanges ( ) ; } }