37 lines
724 B
TypeScript
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();
|
|
}
|
|
}
|