
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
angularx-youtube
Advanced tools
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
To install this library, run:
$ npm install angularx-youtube --save
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)
}
MIT © Edward Payton
FAQs
A Youtube Api module for Angular 5 and above
We found that angularx-youtube demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.