angular-ads
angular-ads copied to clipboard
angular directive that creates ads
angular-ads directive
An AngularJS directive that creates ads from json files
Getting Started
bower install angular-adsor downloadangular-ads.js&angular-ads.cssand link them in your page- Add
angular-adsto your application's module dependencies. - use the
og-adsdirective
Example
See the homepage for a live example.
<div og-ads>
</div>
The og-ads attribute will get json from the file path ads/ads.json by default
Attributes
og-ads-url
You can change the file path from where og-ads gets json by adding an additional attribute og-ads-url
Example:
<div og-ads og-ads-url="ads/otherads.json">
</div>
License
MIT