Created
January 15, 2020 16:51
-
-
Save davidecavaliere/11f370e31a84ae8a0ae43dc6e0422151 to your computer and use it in GitHub Desktop.
This file contains hidden or 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() | |
export class UserService { | |
constructor(private _client: HttpClient) {} | |
public findAll(id: number) { | |
return this._client.get(`https://reqres.in/api/users?page=${id}`); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment