Files
psp_panel/src/service/event.service.ts
T
2025-01-03 12:05:07 +03:00

16 lines
388 B
TypeScript

import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable()
export class EventService {
constructor(private http: HttpClient) { }
getEvents() {
return this.http.get<any>('assets/demo/data/scheduleevents.json')
.toPromise()
.then(res => res.data as any[])
.then(data => data);
}
}