Created
April 4, 2017 13:55
-
-
Save nicobytes/e79f050af4eecdd832c8c4ba75ad9376 to your computer and use it in GitHub Desktop.
ejemplo
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
return new Promise(resolve => { | |
this.http.get('https://randomuser.me/api/?results=25') | |
.map(res => res.json()) | |
.subscribe(data => { | |
this.data = data.results; | |
resolve(this.data); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment