AngularJS lazy load youtube video
-load js
<script src="./angular.js"></script>
<script src="./angular-youtube.min.js"></script>
-module
angular.module('MyApp', ['ps-youtube'])
-html
<!-- use variable -->
<div ps-youtube="player" video-id="video.id"></div>
<!-- or string -->
<div ps-youtube video-id="'your video id'"></div>
ps-youtube
playervideo-id
video id is requiredvideo-name
video name add this attribute to<img alt="videoName">
video-quality
image quality
mq
320×180hq
480×360sd
640×480default
maxres
1920×1080
player-options
default { autoplay: 1, rel: 0 }
refer youtube player parameters