From 1177f4b29b616a59af39f4aef11b116f9660357d Mon Sep 17 00:00:00 2001 From: Danijel Anđelković Date: Sat, 23 Apr 2022 01:28:46 +0200 Subject: Reorganizovao stranice i komponente. --- frontend/src/app/configuration.service.ts | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 frontend/src/app/configuration.service.ts (limited to 'frontend/src/app/configuration.service.ts') diff --git a/frontend/src/app/configuration.service.ts b/frontend/src/app/configuration.service.ts deleted file mode 100644 index 4d2b0987..00000000 --- a/frontend/src/app/configuration.service.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Injectable } from '@angular/core'; -import { HttpClient } from '@angular/common/http'; -import { IConfig } from '../app/_data/IConfig' - -@Injectable() -export class Configuration { - static settings: IConfig; - constructor(private http: HttpClient) { } - load() { - const jsonFile = 'assets/config.json'; - return new Promise((resolve, reject) => { - this.http.get(jsonFile).toPromise().then((response) => { - Configuration.settings = response; - resolve(); - }).catch((response: any) => { - reject(`Could not load file '${jsonFile}': ${JSON.stringify(response)}`); - }); - }); - } -} \ No newline at end of file -- cgit v1.2.3