NGX Embedded Media
September 26, 2019 ยท View on GitHub
Embed media from from top tier media providers directly in your Angular 6+ application. Currently supports YouTube, Vimeo, *Twitch (videos and clips) and Dailymotion. This repository contains an angular library and an angular test application.
Code scaffolding
Run ng generate component component-name --project embedded-media to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project embedded-media.
Note: Don't forget to add
--project embedded-mediaor else it will be added to the default project in yourangular.jsonfile.
Build
Run npm run build:lib to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with npm run build:lib, go to the dist folder cd dist/embedded-media and run npm publish.
Testing
Run ng test embedded-media to execute the unit tests via Karma.
Run ng serve to serve the test application.
Further help
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.
This library was generated with Angular CLI version 8.2.4.