The video-id=“feeddata.id” is the issue. The directive reads “feeddata.id” instead of a video id that I’m passing to it. For instance 1003829. I can console.log the scope variable. All the other scope variables render correctly on the page. It’s just in the vimeo-video directive. I’ve tried “{{feeddata.id}}”, and many variations of that.
What am I doing wrong? Thanks much!
BTW, I can hardcode the video id into the directive and it works fine, so I know it works.
I don’t think it has anything to do with directive itself however…although I could be wrong there too as I’m new to Angular and directives. The directive takes just a string…in this case a Vimeo video ID I’m getting through their API. As I said, I can hard code the ID into the directive and it works fine… it’s just when I’m trying to inject it via the scope.
try to print {{feeddata}} inside and outside the < vimeo-video >, and see what info gives to you, but it should work fine if the $scope.feeddata is an element in the controller.
But this is strange, because the bi-directional databinding should also work with $scope.feedback.
$scope.feedback is already an object and he is referencing to feedback.id.