add frontend ng
This commit is contained in:
parent
80d52ff819
commit
83ef7bab6c
18 changed files with 188 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { Component, inject } from '@angular/core';
|
||||
import {Menu} from './menu/menu';
|
||||
import { OedbApi } from '../../services/oedb-api';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
|
|
@ -10,4 +11,12 @@ import {Menu} from './menu/menu';
|
|||
styleUrl: './home.scss'
|
||||
})
|
||||
export class Home {
|
||||
|
||||
OedbApi = inject(OedbApi);
|
||||
|
||||
constructor() {
|
||||
this.OedbApi.getEvents({}).subscribe((events) => {
|
||||
console.log(events);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue