asb

angular-svg-base-fix

Angular directive for fixing SVG attributes within a document with a base tag

Showing:

Popularity

Downloads/wk

584

GitHub Stars

13

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Angular svg base fix

A small directive for fixing SVG xlink:href within a document with a base tag

Description of the problem — #8934

Installation

via npm:

npm install angular-svg-base-fix

via bower:

bower install angular-svg-base-fix

How to use

Just add this module to your angular app module declaration

angular
  .module('myApp', ['svgBaseFix'])
  .config(function($locationProvider) {
    $locationProvider.html5Mode(true);
  });

Use svg like you normally would:

<svg>
  <use xlink:href="#icon-name"></use>
</svg>

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100