Created
August 31, 2018 20:23
-
-
Save estebanbacl/df42606c0fe4112c535f9fde6f2edb9c 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
import { HttpClient } from '@angular/common/http'; | |
import { Injectable } from '@angular/core'; | |
@Injectable() | |
export class UsuariosProvider { | |
constructor(public http: HttpClient) { | |
console.log('Hello UsuariosProvider Provider'); | |
} | |
getUsuarios(){ | |
return this.http.get('https://jsonplaceholder.typicode.com/users'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment