Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async getInfoFeed(): Promise<Feed> {
- let returnVal: Feed;
- await this.http.get(url)
- .map(res => res.json())
- .subscribe(
- data => returnVal = data,
- err => console.log(err)
- )
- return returnVal;
- }
- var info = await this.getInfoFeed();
- console.log(info);
Add Comment
Please, Sign In to add comment