Skip to content

Instantly share code, notes, and snippets.

@peterbsmyth
Created June 13, 2017 20:44
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/f642fc12d4b4643bf8bf6c4ffea974aa to your computer and use it in GitHub Desktop.
Save peterbsmyth/f642fc12d4b4643bf8bf6c4ffea974aa to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import { environment } from '../environments/environment';
@Injectable()
export class SkillsService {
constructor(private http: Http) { }
getSkills() {
return this.http.get(`${environment.apiUrl}/skill/`);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment