Skip to content

Commit

Permalink
Merge pull request #160 from czeckd/update-readme
Browse files Browse the repository at this point in the history
Update for standalone
  • Loading branch information
czeckd authored Aug 15, 2024
2 parents 7256b3d + a60fd7c commit 49b2f68
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,17 @@ export class AppModule {}
### Standalone Example

```typescript
import { HttpClientModule } from '@angular/common/http';
import { SvgIconComponent, provideAngularSvgIcon } from 'angular-svg-icon';

@NgModule({
imports: [ HttpClientModule, SvgIconComponent ],
providers: [ provideAngularSvgIcon() ],
...
})
export class AppModule {}
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideHttpClient } from '@angular/common/http';
import { provideAngularSvgIcon } from 'angular-svg-icon';

export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideHttpClient(),
provideAngularSvgIcon()
]
};
```

:grey_exclamation: **BREAKING CHANGE**: as of [email protected], an explicit call to `forRoot()`
Expand Down

0 comments on commit 49b2f68

Please sign in to comment.