Guest User

Untitled

a guest
Jan 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public async getInfoFeed(): Promise<Feed> {
  2. let returnVal: Feed;
  3. await this.http.get(url)
  4. .map(res => res.json())
  5. .subscribe(
  6. data => returnVal = data,
  7. err => console.log(err)
  8. )
  9.  
  10. return returnVal;
  11. }
  12.  
  13. var info = await this.getInfoFeed();
  14. console.log(info);
Add Comment
Please, Sign In to add comment