Skip to content

oojr/angular-ads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-ads directive

Homepage

An AngularJS directive that creates ads from json files

Getting Started

  1. bower install angular-ads or download angular-ads.js & angular-ads.css and link them in your page
  2. Add angular-ads to your application's module dependencies.
  3. use the og-ads directive

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

@oojx

About

angular directive that creates ads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages