AngularJS directive for scalable icons (SVG with PNG fallback)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
dist
src
.gitignore
Gruntfile.js
LICENSE
README.md
bower.json
package.json

README.md

nb-icon

AngularJS directive for scalable icons (SVG with PNG fallback)

Notes about SVG and <use>

  • One cannot override an existing fill color of <svg> or its child elements. SVGs that should be colorized should not have a fill attribute.

Compatibility

One-time bindings require Angular 1.3+

Tested in:

  • Chrome 40
  • Firefox 35
  • IE 9
  • Opera 12
  • iOS 6 Safari

Development

Possibly useful in future:

Ports

jQuery https://github.com/netbek/rh-icon

Credits

  • Demo icons by IcoMoon (CC BY 4.0 or GPL)