penambahan list icon
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
import { Injectable } from "@angular/core";
|
||||
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
const httpOptions = {
|
||||
headers: new HttpHeaders({ 'Content-Type': 'application/json' })
|
||||
};
|
||||
@Injectable({
|
||||
providedIn: "root",
|
||||
})
|
||||
export class MasterService {
|
||||
constructor(private http: HttpClient) {}
|
||||
loadDataIcon = null;
|
||||
apiBaseURL = 'assets/data';
|
||||
constructor(private http: HttpClient) {
|
||||
this.loadDataIcon = `${this.apiBaseURL}/hemat/remixicons.json`;
|
||||
}
|
||||
|
||||
getMasterListData(): Observable<any> {
|
||||
const url = `https://kapi.absys.ninja/hemat/header-param/list`;
|
||||
@@ -132,4 +138,8 @@ export class MasterService {
|
||||
});
|
||||
return this.http.get<any>(url, { headers });
|
||||
}
|
||||
|
||||
getIconData(): Observable<any> {
|
||||
return this.http.get(this.loadDataIcon, httpOptions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user