import {Injectable} from "@angular/core"; import {Config} from "../config"; import staticData from "./data"; @Injectable() export class ##SERVICE## { private dataList: Array; load() { if(this.dataList) { return this.dataList; } else { this.dataList = new Array(); } for(var object of staticData) { this.dataList.push(object); } return this.dataList; } getListItem(index: number) { return this.dataList[index]; } }