daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Jan 19th, 2018 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top