-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video list needs an empty function #30
Comments
Yep, I'm working on an alternative to the service approach, as I know it's an issue 👍 |
@ace007 's solution to just expose a method |
BTW - thanks for this great directive! |
Any progress on this? I'm dealing with the same issue in an app I'm working on. Thanks! |
Thank you for this. I've been trying to fix this issue for hours. |
I also encountered this problem。 |
Hi,
The video object is an angular service which means that there is only 1 instance of the object and it survives for the duration of my page.
Every time I navigate to a page to play a video and use addSource to add a video the video is added to the top of ngVideoPlaylist array and the array keeps getting bigger.
I have added the following to the video object
service.resetSource = function clearSource(){
// clear the array of items to play
ngVideoPlaylist.length = 0;
}
This allows me to reset the list when I need to.
The text was updated successfully, but these errors were encountered: