Skip to content

Commit

Permalink
Add missing imports to the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
devoto13 committed Sep 11, 2024
1 parent 58af2e5 commit 50cba30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/usage/icon-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Icons should be registered only once in the `AppComponent`'s constructor using `

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

@Component({
Expand All @@ -45,6 +45,7 @@ export class AppComponent {
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.

```typescript
import { FaIconLibrary } from '@fortawesome/angular-fontawesome';
import { fas } from '@fortawesome/free-solid-svg-icons';
import { far } from '@fortawesome/free-regular-svg-icons';

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

```typescript
import { Component } from '@angular/core';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
import { all } from '@awesome.me/kit-KIT_CODE/icons';

@Component({
Expand Down

0 comments on commit 50cba30

Please sign in to comment.