@@ -38,12 +38,11 @@ npm install @coreui/icons-angular
3838``` ts
3939// app NgModule
4040
41- import { IconModule , IconSetModule , IconSetService } from ' @coreui/icons-angular' ;
41+ import { IconModule , IconSetService } from ' @coreui/icons-angular' ;
4242
4343@NgModule ({
4444 imports: [
4545 IconModule ,
46- IconSetModule .forRoot (),
4746...
4847 providers : [IconSetService ],
4948...
@@ -53,12 +52,10 @@ import { IconModule, IconSetModule, IconSetService } from '@coreui/icons-angular
5352// app component
5453
5554import { cilEnvelopeOpen , flagSet } from ' @coreui/icons' ;
56- import { IconModule , IconSetModule , IconSetService } from ' @coreui/icons-angular' ;
55+ import { IconSetService } from ' @coreui/icons-angular' ;
5756
5857@Component ({
5958 ...
60- providers : [IconSetService ],
61- ...
6259})
6360export class AppComponent implements OnInit {
6461 constructor (public iconSet : IconSetService ) {
@@ -74,6 +71,8 @@ export class AppComponent implements OnInit {
7471` ` `
7572
7673### API
74+
75+ #### Icon _directive_
7776> Use one of ` name ` or ` content ` prop as it defines the way of icon import
7877
7978##### Inputs
@@ -91,6 +90,17 @@ proprerty | type | default | description
9190
9291---
9392
93+ #### IconSet _service_
94+
95+ ##### Props
96+
97+ | proprerty | type | default | description|
98+ | --- | --- | --- | --- |
99+ | ` getIcon()` | ` (string ): any [] ` | | returns an icon |
100+ | ` icons ` | ` IIconSet ` | undefined | IconSet object |
101+ | ` iconNames ` | ` [key : string ]: string ` | _undefined_ | returns icon name from key |
102+
103+ ---
94104### License
95105
96106CoreUI Icons Free are free, open source, and GPL friendly. You can use it for
0 commit comments