Skip to content

Instantly share code, notes, and snippets.

@peterbsmyth
Created June 13, 2017 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbsmyth/ad191e8226471696889394ce22968f2e to your computer and use it in GitHub Desktop.
Save peterbsmyth/ad191e8226471696889394ce22968f2e to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
@Injectable()
export class SkillsService {
constructor(private http: Http) { }
getSkills() {
return this.http.get('localhost:3000/skill/');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment