An AngularJS directive that creates ads from json files
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
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
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>MIT