Skip to content

Commit 50cba30

Browse files
committed
Add missing imports to the documentation
Fixes #451
1 parent 58af2e5 commit 50cba30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/usage/icon-library.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Icons should be registered only once in the `AppComponent`'s constructor using `
2525

2626
```typescript
2727
import { Component } from '@angular/core';
28-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
28+
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
2929
import { faCoffee } from '@fortawesome/free-solid-svg-icons';
3030

3131
@Component({
@@ -45,6 +45,7 @@ export class AppComponent {
4545
You can also import entire icon styles. But be careful! This way of importing icons does not support tree-shaking, so all icons from the imported package will end up in the bundle.
4646

4747
```typescript
48+
import { FaIconLibrary } from '@fortawesome/angular-fontawesome';
4849
import { fas } from '@fortawesome/free-solid-svg-icons';
4950
import { far } from '@fortawesome/free-regular-svg-icons';
5051

@@ -63,7 +64,7 @@ _In these examples, you would replace "KIT_CODE" with the unique identifier for
6364

6465
```typescript
6566
import { Component } from '@angular/core';
66-
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
67+
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
6768
import { all } from '@awesome.me/kit-KIT_CODE/icons';
6869

6970
@Component({

0 commit comments

Comments
 (0)