Skip to content

Commit f3e3973

Browse files
committed
update readme
1 parent a819280 commit f3e3973

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Angular svg base fix
22

33
A small directive for fixing SVG ``xlink:href`` within a document with a base tag
4+
Description of the problem — [#8934](https://github.com/angular/angular.js/issues/8934)
45

56
### Installation
67

@@ -18,16 +19,20 @@ bower install angular-svg-base-fix
1819

1920
### How to use
2021

22+
Just add this module to your angular app module declaration
23+
2124
```javascript
2225
angular
23-
.module( 'myApp', ['svgBaseFix'] )
24-
.config( function($locationProvider) {
26+
.module('myApp', ['svgBaseFix'])
27+
.config(function($locationProvider) {
2528
$locationProvider.html5Mode(true);
2629
});
2730
```
2831

32+
Use svg like you normally would:
33+
2934
```html
3035
<svg>
31-
<use svg-base-fix xlink:href="#icon-name"></use>
36+
<use xlink:href="#icon-name"></use>
3237
</svg>
3338
```

0 commit comments

Comments
 (0)