angular-svg-icon
Advanced tools
Comparing version 18.0.1 to 18.0.2
{ | ||
"name": "angular-svg-icon", | ||
"description": "Angular 18 component and service for inlining SVGs allowing them to be easily styled with CSS.", | ||
"version": "18.0.1", | ||
"version": "18.0.2", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -69,11 +69,13 @@ [![npm version](https://badge.fury.io/js/angular-svg-icon.svg)](https://badge.fury.io/js/angular-svg-icon) | ||
```typescript | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { SvgIconComponent, provideAngularSvgIcon } from 'angular-svg-icon'; | ||
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; | ||
import { provideHttpClient } from '@angular/common/http'; | ||
import { provideAngularSvgIcon } from 'angular-svg-icon'; | ||
@NgModule({ | ||
imports: [ HttpClientModule, SvgIconComponent ], | ||
providers: [ provideAngularSvgIcon() ], | ||
... | ||
}) | ||
export class AppModule {} | ||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
provideZoneChangeDetection({ eventCoalescing: true }), | ||
provideHttpClient(), | ||
provideAngularSvgIcon() | ||
] | ||
}; | ||
``` | ||
@@ -80,0 +82,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119486
886
346