Skip to content

Commit

Permalink
fix(doc/icons): added infor about lazy loader #1692
Browse files Browse the repository at this point in the history
  • Loading branch information
ZurabDev committed May 28, 2024
1 parent 29cb58b commit 7093eac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions apps/doc/src/app/components/icons/base/examples/setup-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Использование svg
import { NgModule } from '@angular/core';
import { PrizmIconsComponent, PrizmIconsFullComponent } from '@prizm-ui/icons';
import { prizmIconsProvideLazyLoader } from '@prizm-ui/icons-loader';
import { prizmIconsFullProvideLazyLoader } from '@prizm-ui/icons-loader/full';

// ...

Expand All @@ -12,6 +14,18 @@ import { PrizmIconsComponent, PrizmIconsFullComponent } from '@prizm-ui/icons';
// for full variant
PrizmIconsFullComponent,
],
providers: [
/**
* For lazy load full icons
* use our loader for the get the full icons without having to register
* */
prizmIconsFullProvideLazyLoader(),
/**
* For lazy load base icons
* use our loader for the get the icons without having to register
* */
prizmIconsProvideLazyLoader(),
],
})
export class MyModule {}
```
Expand Down

0 comments on commit 7093eac

Please sign in to comment.