-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,8 @@ See the module's accompanying README.md for instructions. | |
The **angular-svg-icon** should work as-is with webpack/angular-cli. Just import the | ||
``AngularSvgIconModule`` and the ```HttpClientModule```. | ||
|
||
### Module Example | ||
|
||
```typescript | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { AngularSvgIconModule } from 'angular-svg-icon'; | ||
|
@@ -48,9 +50,11 @@ import { AngularSvgIconModule } from 'angular-svg-icon'; | |
... | ||
}) | ||
export class AppModule {} | ||
``` | ||
|
||
// Standalone Example | ||
### Standalone Example | ||
|
||
```typescript | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { SvgIconComponent, provideAngularSvgIcon } from 'angular-svg-icon'; | ||
|
||
|
@@ -65,7 +69,7 @@ export class AppModule {} | |
**BREAKING CHANGE**: as of [email protected], an explicit call to `forRoot()` | ||
must be made on the module's import. | ||
|
||
### Child modules | ||
### Child Modules | ||
|
||
Recommened usage pattern is to import `AngularSvgIconModule.forRoot()` in only the root AppModule of your application. | ||
In child modules, import only `AngularSvgIconModule`. | ||
|