I have just started my first angular.js project and have a situation where a user clicks a button which sets a value on my model but what I also need now is the the html video element to have it's currentTime property set to a value and the video that is currently playing to pause.
So what I need is
1) Update my model (which I have done via ng-click)
2) Run some javascript which does
{
$('videoElement')[0].currentTime = time (from my model);
$('videoElement')[0].pause();
}
I am not sure where this second step should be triggered from and how?