Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-svg-base-fix

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-svg-base-fix

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

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
203
increased by7.41%
Maintainers
1
Weekly downloads
 
Created
Source

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>

Keywords

FAQs

Package last updated on 28 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc