Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//http://www.siraj360.com/ng2/ :: A single page application developed with Angular 2 (beta) and Bootstrap 4 (alpha).
import { Injectable } from 'angular2/core';
import {Employees} from '../data/data.employees';
import {Courses} from '../data/data.courses';
@Injectable()
export class DataService {
constructor() { }
getEmployees() {
return Promise.resolve(Employees);
}
getEmployeeList() {
return Promise.resolve(Employees);
}
getCourses() {
return Promise.resolve(Courses);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment