# angular-youtube-lite

> > Module provide responsive youtube iframe component, to help you embed youtube video in your angular application. Designed for application which doesn't need to use Youtube API.

Latest version **1.0.1** (published 2017-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-youtube-lite
pnpm add angular-youtube-lite
yarn add angular-youtube-lite
bun add angular-youtube-lite
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-06-11 |
| First published | 2017-06-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Foxeye-Rinx |
| Maintainers | foxeye.rinx |

## Links

- npm: https://www.npmjs.com/package/angular-youtube-lite
- Repository: https://github.com/Foxeye-Rinx/angular-youtube-lite
- Homepage: https://github.com/Foxeye-Rinx/angular-youtube-lite#readme
- Issues: https://github.com/Foxeye-Rinx/angular-youtube-lite/issues
- npm.io page: https://npm.io/package/angular-youtube-lite

## Recent versions

- 1.0.1 (latest) — 2017-06-11
- 1.0.0 — 2017-06-11

## README

# angular-youtube-lite
> Module provide responsive youtube iframe component, to help you embed youtube video in your angular application.
Designed for application which doesn't need to use Youtube API.

## Installation

`npm install --save angular-youtube-lite`

## Usage

```js
angular.module('app', ['angular-youtube-lite']);
```

According to [rscss](http://rscss.io/layouts.html) layouts definition, you should define your own video container.

```css
.custome-youtube-container {
    width: 50%;
}
```
```html
<div class="custome-youtube-container">
    <youtube video-id="zYcZC-rcYrc"></youtube>
</div>
```

The embedded video will stretch to fill your container's width size.

### Attributes

Attributes  | Description | DefaultValue | Type
--- | --- | --- | ---
video-id | Youtube video's ID | None | String
playlist | List of Youtube video's IDs, separated by commas | None | String
playlist-id | Youtube playlist's ID | None | String
hide-logo | Hide Youtube logo on embedded iframe | False | Boolean
color | Color theme of Youtube iframe, available values: ["white","red"] | "red" | String
autoplay | Autoplay video when the youtube player loaded | False | Boolean
turn-cc-on | If turn-cc-on="true", turn on CC when video start palying, else, use user's reference settings on Youtube | False | Boolean
related-video | If related-video="false", Youtube iframe doesn't show related video when video ends. | True | Boolean

For more information, checkout [demo page](https://foxeye-rinx.github.io/angular-youtube-lite/)

## Credits
Sergey Kupletsky's [CodePen](https://codepen.io/zavoloklom/pen/IGkDz)

## License

MIT

---
_Source: https://npm.io/package/angular-youtube-lite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
