angular ui

This commit is contained in:
2025-05-10 11:33:42 +02:00
parent a2048718d8
commit a3a48cad40
120 changed files with 7600 additions and 475 deletions

View File

@@ -0,0 +1,4 @@
<h1>Menu Page</h1>
<p>Select an option:</p>
<button (click)="navigateToGame()">Play Game</button>
<button (click)="navigateToOptions()">Options</button>

View File

@@ -0,0 +1,19 @@
import { Component } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-menu',
templateUrl: './menu.component.html',
styleUrls: ['./menu.component.css'],
})
export class MenuComponent {
constructor(private router: Router) {}
navigateToGame(): void {
this.router.navigate(['/game']);
}
navigateToOptions(): void {
this.router.navigate(['/options'], { state: { mode: 'full' } });
}
}