Created
January 30, 2016 04:30
-
-
Save SirajGadhia/ec11bfd91836bc296777 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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