https://github.com/bbc/ngembed
https://github.com/bbc/ngembed
dpub frontend library vivo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bbc/ngembed
- Owner: bbc
- Created: 2015-02-12T12:07:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T15:12:29.000Z (7 months ago)
- Last Synced: 2025-02-15T22:29:36.626Z (4 months ago)
- Topics: dpub, frontend, library, vivo
- Language: JavaScript
- Size: 77.1 KB
- Stars: 1
- Watchers: 51
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ngEmbed
An angular module based on the jquery library https://github.com/nfl/jquery-oembed-all
This is now compatible with Angular 1.6
## Getting started
* Clone the repo
* Run ```npm install```
* Run ```bower install```## To test
Run the unit tests and/or open test.html in a browser
## To build
run ```grunt build```
## Using it
Include the module as a dependency for your app e.g.
```module('app', ['ngEmbed']);```To embed content simply create the ngEmbed directive and set the `embed-url` attribute. The results of the embed will be placed in the `ngModel` which will contain the provider, the urls, and the embed code.
You can also provide a settings object that will allow you to pass either global settings or provider-specific settings just as in the jquery-embed-all library.