Wildhoney / ngVideo

Modularised ~13KB HTML5 audio/video implementation using Angular.js
http://ng-video.herokuapp.com/
MIT License
227 stars 60 forks source link

Data binding source? #46

Open tomercagan opened 8 years ago

tomercagan commented 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

nidzola-nikolaz commented 7 years ago

+1