ng-youtube-embed icon indicating copy to clipboard operation
ng-youtube-embed copied to clipboard

playlist parameter not accepting scope variables

Open jrauch2 opened this issue 6 years ago • 1 comments

<ng-youtube-embed flex="100" flex-gt-xs="70" video="movie.YouTubeVideo" playlist="movie.YouTubePlaylist"> </ng-youtube-embed>

When using the tag as shown above, the scope variable gets read as a string literal. The url generated shows this:

https://www.youtube.com/embed/dzxFdtWmjto?enablejsapi=0&autoplay=0&cc_load_policy=0&color=red&controls=1&disablekb=0&fs=1&iv_load_policy=1**&playlist=movie.YouTubePlaylist**&playsinline=0&rel=1&showinfo=1&modestbranding=0&origin=https://jrauch2.bitlampsites.com

jrauch2 avatar Dec 14 '18 21:12 jrauch2

Try using playlist="{{movie.YouTubePlaylist}}".

ArunMichaelDsouza avatar Dec 15 '18 17:12 ArunMichaelDsouza