Skip to content

Instantly share code, notes, and snippets.

@SirajGadhia
Created January 30, 2016 04:30
Show Gist options
  • Save SirajGadhia/ec11bfd91836bc296777 to your computer and use it in GitHub Desktop.
Save SirajGadhia/ec11bfd91836bc296777 to your computer and use it in GitHub Desktop.
//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