Data loss at Ajax subscribe

Viewed 7

I want to fetch video data from vimeo and assign it to new object with it's own interface.

videoData object getVideoData method

The problem is with the videoData object. When i console.log it and it's value (eg.: videoData.name) inside subscribe - everything is fine. But when i try to console.log it after subscribe the object and it's values exist but when i try to get the value (eg.: videoData.name) it's an empty string.

Does anybody has an idea how can i get these values?

0 Answers
Related