Open tomercagan opened 8 years ago
Hi,
Is there a ready-made way to use data-binding and not work through the video service in my controller?
I am looking for a way to do something like this:
<div ng-repeat="post in timelinePosts"> <div class="video-container"> <section class="video" ng-video video-source="someControllerPropertyOrMethod"> <video vi-screen></video> </section> <div> <div>
I guess this whole thing (the inner div) could be encapsulated in a directive but I was wondering if there is a ready made one or an example of how to accomplish that (I'm js/angular noob).
Thanks,
Tomer
+1
Hi,
Is there a ready-made way to use data-binding and not work through the video service in my controller?
I am looking for a way to do something like this:
I guess this whole thing (the inner div) could be encapsulated in a directive but I was wondering if there is a ready made one or an example of how to accomplish that (I'm js/angular noob).
Thanks,
Tomer