Files
psp_panel/src/app/service/eventservice.ts
T

16 lines
366 B
TypeScript
Raw Normal View History

2021-12-09 17:24:42 +03:00
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);
}
}