Refactor style cache
This commit is contained in:
@@ -4,9 +4,7 @@ import {IItem} from '../models/item'
|
||||
import {AppConfig} from '../shared/app.config';
|
||||
import {HttpClient, HttpXhrBackend} from '@angular/common/http';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
@Injectable()
|
||||
export class ItemTypeService {
|
||||
public itemTypes: IItemTypes;
|
||||
private httpClient: HttpClient;
|
||||
@@ -15,10 +13,6 @@ export class ItemTypeService {
|
||||
this.httpClient = new HttpClient(xhrBackend);
|
||||
}
|
||||
|
||||
// itemService.getItemTypes().subscribe((itemTypes) => {
|
||||
// this.itemTypes = itemTypes;
|
||||
// });
|
||||
|
||||
getIcon(itemType: string) {
|
||||
var icon = "fa fa-file-o";
|
||||
if (this.itemTypes[itemType]) icon = this.itemTypes[itemType].icon;
|
||||
|
Reference in New Issue
Block a user