2025-10-03 11:56:55 +02:00
|
|
|
import { Component, inject } from '@angular/core';
|
2025-10-02 23:19:15 +02:00
|
|
|
import {Menu} from './menu/menu';
|
2025-10-03 11:56:55 +02:00
|
|
|
import { OedbApi } from '../../services/oedb-api';
|
2025-10-02 22:53:50 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-home',
|
2025-10-02 23:19:15 +02:00
|
|
|
imports: [
|
|
|
|
Menu
|
|
|
|
],
|
2025-10-02 22:53:50 +02:00
|
|
|
templateUrl: './home.html',
|
|
|
|
styleUrl: './home.scss'
|
|
|
|
})
|
|
|
|
export class Home {
|
2025-10-03 11:56:55 +02:00
|
|
|
|
|
|
|
OedbApi = inject(OedbApi);
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.OedbApi.getEvents({}).subscribe((events) => {
|
|
|
|
console.log(events);
|
|
|
|
});
|
|
|
|
}
|
2025-10-02 22:53:50 +02:00
|
|
|
}
|