adaptive-youtube

Save data, conditionally load youtube videos.
Submitted by: 840789? janantala

angular-adaptive-youtube v0.1.0 Build Status

Save data, conditionally load youtube videos.

Demo

Check out http://angular-adaptive.github.io/adaptive-youtube/demo/

Requirements

  • AngularJS v ~1.2.x

Usage

We use bower for dependency management. Add

To your bower.json file. Then run

This will copy the youtube module files into your bower_components folder, along with its dependencies. Load the script files in your application:

Add the adaptive.youtube module as a dependency to your application module:

Set up styles and a video id css .youtube { width: 100%; height: 500px; } js $scope.youtubeId = 'kxopViU98Xo';

And use it html <youtube video="youtubeId" class="youtube"></youtube>

Contributing

Pull requests are welcome.

Make a PR against canary branch and don't bump any versions.

Please respect the code style in place.

License

The MIT License

Copyright (c) 2014 Jan Antala

comments powered by Disqus
This page was last updated about 3 years ago.