Skip to content

Citrullin/angular-responsive-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-responsive-youtube

Responsive Youtube Player for AngularJS

description: The responsive Youtube Player is a simple directive for angular. The directive get the width of the outer div element, insert a iframe and calculate the height of the iframe.

Usage:

  1. Add the Javascript-File to your main html.

  2. inject the module with 'citrullin.ryoutubeplayer'. e.g

angular.module('APPLICATIONNAME', ['citrullin.ryoutubeplayer']);

  1. use the youtube element
<youtube-video video-id="YOUTUBEVIDEOCODE"></youtube-video>


you can find the video-id at the youtube URL. The video-id of the url: https://www.youtube.com/watch?v=GNMgEcRIPnc is GNMgEcRIPnc

About

Responsive Youtube Player for AngularJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published