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() {
|
2022-07-22 13:13:50 +03:00
|
|
|
return this.http.get<any>('assets/demo/data/scheduleevents.json')
|
|
|
|
|
.toPromise()
|
|
|
|
|
.then(res => res.data as any[])
|
|
|
|
|
.then(data => data);
|
2021-12-09 17:24:42 +03:00
|
|
|
}
|
|
|
|
|
}
|