# angular-svg-base-fix

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

Latest version **2.0.0** (published 2016-07-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install angular-svg-base-fix
pnpm add angular-svg-base-fix
yarn add angular-svg-base-fix
bun add angular-svg-base-fix
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2016-07-28 |
| First published | 2016-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | everdimension |
| Maintainers | everdimension |
| Keywords | angular, svg, base, fix, directive |

## Links

- npm: https://www.npmjs.com/package/angular-svg-base-fix
- Repository: https://github.com/everdimension/angular-svg-base-fix
- Homepage: https://github.com/everdimension/angular-svg-base-fix#readme
- Issues: https://github.com/everdimension/angular-svg-base-fix/issues
- npm.io page: https://npm.io/package/angular-svg-base-fix

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2016-07-28
- 1.0.1 — 2016-05-05
- 1.0.0 — 2016-04-27
- 0.0.3 — 2016-03-31
- 0.0.1 — 2016-03-31

## 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](https://github.com/angular/angular.js/issues/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

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

Use svg like you normally would:

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

---
_Source: https://npm.io/package/angular-svg-base-fix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
