How to use ng-svg-icon-sprite - 1 common examples

To help you get started, we’ve selected a few ng-svg-icon-sprite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jannicz / ng-svg-icon-sprite / src / app / app.module.ts View on Github external
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { IconSpriteModule } from 'ng-svg-icon-sprite';
import { environment } from '../environments/environment';


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    IconSpriteModule.forRoot({ path: environment.spritePath })
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

ng-svg-icon-sprite

Angular 17+ package for generating and using inline SVG icons in your project

MIT
Latest version published 8 months ago

Package Health Score

58 / 100
Full package analysis

Popular ng-svg-icon-sprite functions