Created
March 14, 2019 05:42
-
-
Save nitinknolder/4dc1f49a98be5053638da1fb4de2061f to your computer and use it in GitHub Desktop.
This file contains 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
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