How to use ng-inline-svg - 4 common examples

To help you get started, we’ve selected a few ng-inline-svg 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 Okty-io / okty / src / app / core / core.module.ts View on Github external
import { NavbarComponent } from './components/navbar/navbar.component';
import { FooterComponent } from './components/footer/footer.component';
import { RouterModule } from '@angular/router';
import { NgcCookieConsentModule } from 'ngx-cookieconsent';
import { InlineSVGModule } from 'ng-inline-svg';

@NgModule({
    declarations: [
        NavbarComponent,
        FooterComponent,
    ],
    imports: [
        CommonModule,
        RouterModule.forChild([]),
        NgcCookieConsentModule,
        InlineSVGModule.forRoot()
    ],
    exports: [
        NavbarComponent,
        FooterComponent,
    ]
})
export class CoreModule {
}
github oznu / homebridge-config-ui-x / ui / src / app / modules / accessories / accessories.module.ts View on Github external
],
  entryComponents: [
    AddRoomModalComponent,
    InfoModalComponent,
    ThermostatManageComponent,
    LightbulbManageComponent,
    FanManageComponent,
    WindowcoveringManageComponent,
  ],
  imports: [
    CommonModule,
    FormsModule,
    NouisliderModule,
    NgbModule,
    DragulaModule.forRoot(),
    InlineSVGModule.forRoot(),
    TranslateModule.forChild(),
    CoreModule,
    AccessoriesRoutingModule,
  ],
  providers: [
    AccessoriesResolver,
  ],
})
export class AccessoriesModule { }
github arkon / ng-inline-svg / demo / src / bootstrap.ts View on Github external
import { NgModule, enableProdMode } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { InlineSVGModule } from 'ng-inline-svg';

import { DemoComponent } from './demo/demo.component';

import './styles/styles.scss';

enableProdMode();

@NgModule({
  declarations: [DemoComponent],
  imports: [BrowserModule, HttpClientModule, InlineSVGModule.forRoot()],
  bootstrap: [DemoComponent]
})
class DemoAppModule { }

platformBrowserDynamic().bootstrapModule(DemoAppModule);
github Okty-io / okty / src / app / modules / cms / cms.module.ts View on Github external
import { PageIllustrationComponent } from './components/page-illustration/page-illustration.component';
import { InlineSVGModule } from 'ng-inline-svg';
import { HttpClientModule } from '@angular/common/http';
import { SharedModule } from '../../shared/shared.module';

@NgModule({
    declarations: [
        HomeComponent,
        PrivacyComponent,
        PageIllustrationComponent
    ],
    imports: [
        CommonModule,
        CmsRoutingModule,
        HttpClientModule,
        InlineSVGModule.forRoot(),
        SharedModule
    ]
})
export class CmsModule {
}

ng-inline-svg

[DEPRECATED] Angular directive for inserting an SVG inline within an element.

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular ng-inline-svg functions