Skip to content

SHMEDIALIMITED/shm-youtube

Repository files navigation

Angular Youtube

wercker status

bower i shm-youtube

Import shm.youtube module into your app.

var app = angular.module('yourApp', ['shm.youtube'])

Use that tag

<youtube 
	width="100%"
	height="480"
	mercy="1000"
	video="98QwPO1b5j4">
</youtube>

The mercy attribute is the time delay in milliseconds until the DOM element gets replaced with the iframe. This can be useful to avoid repaints while transitioning from states.