ng-inline-svg-g
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

NgInlineSvgG

NgInlineSvgG is lightweight Angular component for inserting svg file inside your template that allow you to change style easily

Installation

npm i ng-inline-svg-g

Usage

Just need to add NgInlineSvgGModule to your list of module imports :

import { NgInlineSvgGModule } from 'ng-inline-svg-g';

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, NgInlineSvgGModule],
bootstrap: [AppComponent]
})
class AppModule {}

Then you can use it in your templates:

@Component({
selector: 'app',
template: `
<ng-inline-svg [src]="'/img/image.svg'"></ng-inline-svg>
`
})
export class AppComponent {}

Package Sidebar

Install

npm i ng-inline-svg-g

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

26.7 kB

Total Files

14

Last publish

Collaborators

  • h.mohtashami