Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nitinknolder
Created March 14, 2019 05: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 nitinknolder/4dc1f49a98be5053638da1fb4de2061f to your computer and use it in GitHub Desktop.
Save nitinknolder/4dc1f49a98be5053638da1fb4de2061f to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {Observable} from "rxjs";
@Injectable()
export class UserProfileService {
url = 'http://localhost:3005';
constructor(private http: HttpClient) { }
getMockData(): Observable<any> {
return this.http.get(this.url + '/data');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment