angular-svg-base-fix

WebJar for angular-svg-base-fix

License

License

ISC
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

angular-svg-base-fix
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-svg-base-fix
WebJar for angular-svg-base-fix
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/everdimension/angular-svg-base-fix

Download angular-svg-base-fix

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/angular-svg-base-fix/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>angular-svg-base-fix</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/angular-svg-base-fix/
implementation 'org.webjars.npm:angular-svg-base-fix:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/angular-svg-base-fix/
implementation ("org.webjars.npm:angular-svg-base-fix:2.0.0")
'org.webjars.npm:angular-svg-base-fix:jar:2.0.0'
<dependency org="org.webjars.npm" name="angular-svg-base-fix" rev="2.0.0">
  <artifact name="angular-svg-base-fix" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='angular-svg-base-fix', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "angular-svg-base-fix" % "2.0.0"
[org.webjars.npm/angular-svg-base-fix "2.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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>

Versions

Version
2.0.0