skirda-go-launcher-interface/src/app/app.component.ts
2022-10-17 16:54:44 +03:00

37 lines
724 B
TypeScript

import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
title = 'go-web';
version: string | null = null;
games: { id: string; name: string }[] = [
{
id: 'game-1',
name: 'Game one',
},
{
id: 'game-2',
name: 'Game two',
},
{
id: 'game-3',
name: 'Game three',
},
];
constructor() {}
getVersion() {
// document.addEventListener('GetVersion_Callback', (event: Event): void => {
// if (!(event instanceof CustomEvent<string>)) return;
// this.version = event.detail;
// });
// GetVersion();
}
}