Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.getData(id)
- .subscribe(res => {
- console.log(data.items[0])
- // more data processing
- })
- let data;
- this.getData(id)
- .subscribe(res => data = res)
- console.log(data.items[0])
- // more data processing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement