An AngularJS directive that creates ads from json files
bower install angular-ads
or downloadangular-ads.js
&angular-ads.css
and link them in your page- Add
angular-ads
to your application's module dependencies. - use the
og-ads
directive
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