transforms landing, about and schedule page content to data driven
This commit is contained in:
1 parent
2ba6204c3d
commit
d2ab2240d5
16 files changed
+90
-23
No files matched your search
@@ -3,6 +3,7 @@ import { AsyncPipe, DatePipe, NgFor } from '@angular/common';
|
||||
import { map, Observable, startWith } from 'rxjs';
|
||||
|
||||
import { EventService } from '../services/event.service';
|
||||
import { StationConfigService } from '../services/station-config.service';
|
||||
import { Event } from '../interfaces/event';
|
||||
|
||||
interface EventsState {
|
||||
@@ -19,6 +20,7 @@ interface EventsState {
|
||||
})
|
||||
export class EventsComponent {
|
||||
private eventService = inject(EventService);
|
||||
readonly config = inject(StationConfigService).config;
|
||||
|
||||
/** Async pipe drives the template — guarantees change detection on every emission. */
|
||||
readonly events$: Observable<EventsState> =
|
||||
|
||||
Reference in new issue
Block a user