Skip to content
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

Unable to embed this directive inside a colorbox #110

Open
papes1ns opened this issue Mar 22, 2016 · 1 comment
Open

Unable to embed this directive inside a colorbox #110

papes1ns opened this issue Mar 22, 2016 · 1 comment
Labels

Comments

@papes1ns
Copy link

My page has a list of links to youtube videos. If the user clicks on a link I want to open it in a jquery.colorbox. The following does not work. The colorbox opens with nothing in it and the youtube video is loaded behind it and is not wrapped in the colorbox.

View
<youtube-video class="youtube-video" video-url="videoURL" player-vars="playerVars" player="myPlayer"></youtube-video>

Controller
$scope.$on('youtube.player.ready', function ($event, player) { $(".youtube-video").colorbox({ open: true, }); });

@brandly
Copy link
Owner

brandly commented Jul 3, 2016

this line doesn't look like it'll play very well with angular: $(".youtube-video").colorbox({ open: true, });

i haven't actually used colorbox in any form, but maybe this direction could help: https://github.com/igorlino/angular-colorbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants