Socket
Book a DemoInstallSign in
Socket

angularx-youtube

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angularx-youtube

A Youtube Api module for Angular 5 and above

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

angularx-youtube

A Youtube Api module for Angular 5 and above

Supplied in UMD Bundle format through NPM

https://www.npmjs.com/package/angularx-youtube
https://github.com/edwardpayton/angularx-youtube

Installation

To install this library, run:

$ npm install angularx-youtube --save

Consuming the library

You can import the library in any Angular application by running:

$ npm install angularx-youtube --save

and then from your Angular AppModule:

// In yout Module

// Import the Youtube Module
import { YoutubeModule } from 'angularx-youtube';

@NgModule({
	...
	imports: [
		// Specify the library as an import
		YoutubeModule
	],
	...
})

Once your module is imported, you can use it in your Angular application:

import { YoutubeComponent } from 'angularx-youtube';
<!-- You can now use the Youtube component in your app.component.html -->
<youtube-component
	[videoId]="id"
	(ready)="onReady($event)"
	(change)="onChange($event)"
></youtube-component>

You will then have full access to the Youtube iFrame Api

For example:

	onReady(player): void {
		this.player = player;
	}

	onChange(event): void {
		console.log(event)
	}

License

MIT © Edward Payton

Keywords

angular 5

FAQs

Package last updated on 17 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.