Last active
May 4, 2018 10:01
-
-
Save cyrilletuzi/896821ad7341c02436a3963456a3ef81 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
@Injectable({ providedIn: 'root' }) | |
export class SomeService { | |
constructor(protected http: HttpClient) {} | |
getData() { | |
return this.http.get<SomeData>('/path/to/api'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment