@ng-icons/ionicons 29.10.0 → 30.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  # Ng Icons
10
10
 
11
11
  The all-in-one icon library for Angular. This allows you to use icons from multiple icon sets with a single icon component.
12
- Containing over 61,000 icons for you to use in your projects.
12
+ Containing over 66,000 icons for you to use in your projects.
13
13
 
14
14
  Currently, we support the following libraries:
15
15
 
@@ -40,6 +40,7 @@ Currently, we support the following libraries:
40
40
  - [Huge Icons](https://hugeicons.com/)
41
41
  - [Devicon](https://github.com/devicons/devicon/)
42
42
  - [Game Icons](https://game-icons.net/)
43
+ - [Flag Icons](https://flagicons.lipis.dev/)
43
44
 
44
45
  Got suggestions for additional iconsets? Create an issue and we can consider adding them!
45
46
 
@@ -61,6 +62,7 @@ Ng Icons is an MIT-licensed open source project with its ongoing development mad
61
62
  | 16.x.x | 25.x.x |
62
63
  | 17.x.x | 26.x.x - 27.x.x |
63
64
  | 18.x.x | 28.x.x - 29.x.x |
65
+ | 19.x.x | 30.x.x |
64
66
 
65
67
  > **Note**: Ng Icons relies on modern browser features and is designed to work on evergreen browsers. We do not support older browsers such as IE11.
66
68
 
@@ -150,16 +152,16 @@ You can then use the icon in your templates:
150
152
  As of version 18.0.0 Ng Icons nows supports standalone components. You can import icons using the `provideIcons` function which can be placed anywhere you can register providers. The optimal location
151
153
  would be in the `@Component` providers array.
152
154
 
153
- You can also import the component directly by importing `NgIconComponent` or the `NG_ICON_DIRECTIVES` constant.
155
+ You can also import the component directly by importing `NgIcon` or the `NG_ICON_DIRECTIVES` constant.
154
156
 
155
157
  ```ts
156
- import { NgIconComponent, provideIcons } from '@ng-icons/core';
158
+ import { NgIcon, provideIcons } from '@ng-icons/core';
157
159
  import { featherAirplay } from '@ng-icons/feather-icons';
158
160
  import { heroUsers } from '@ng-icons/heroicons/outline';
159
161
 
160
162
  @Component({
161
163
  standalone: true,
162
- imports: [NgIconComponent],
164
+ imports: [NgIcon],
163
165
  providers: [provideIcons({ featherAirplay, heroUsers })],
164
166
  })
165
167
  export class AppComponent {}
@@ -183,12 +185,12 @@ export class ParentComponent {
183
185
  }
184
186
 
185
187
  // child.component.ts
186
- import { NgIconComponent } from '@ng-icons/core';
188
+ import { NgIcon } from '@ng-icons/core';
187
189
 
188
190
  @Component({
189
191
  standalone: true,
190
192
  selector: 'app-child',
191
- imports: [NgIconComponent],
193
+ imports: [NgIcon],
192
194
  template: '<ng-icon [svg]="icon" />',
193
195
  })
194
196
  export class ChildComponent {
@@ -221,7 +223,7 @@ export class AppModule {}
221
223
  #### Standalone
222
224
 
223
225
  ```ts
224
- import { NgIconComponent, provideIcons, provideNgIconsConfig } from '@ng-icons/core';
226
+ import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core';
225
227
 
226
228
  bootstrapApplication(AppComponent, {
227
229
  providers: [
@@ -237,7 +239,7 @@ bootstrapApplication(AppComponent, {
237
239
  If your application has a strict Content Security Policy (CSP) you may need to add the following to your global configuration to ensure you do not get any errors.
238
240
 
239
241
  ```ts
240
- import { NgIconComponent, provideIcons, provideNgIconsConfig, withContentSecurityPolicy } from '@ng-icons/core';
242
+ import { NgIcon, provideIcons, provideNgIconsConfig, withContentSecurityPolicy } from '@ng-icons/core';
241
243
 
242
244
  bootstrapApplication(AppComponent, {
243
245
  providers: [provideNgIconsConfig({}, withContentSecurityPolicy())],
@@ -252,7 +254,7 @@ Should you want stricter checks you can enable the `ExceptionLogger` which will
252
254
  You can enable this by providing the `withExceptionLogger` function to the `provideNgIconsConfig` function.
253
255
 
254
256
  ```ts
255
- import { NgIconComponent, provideIcons, provideNgIconsConfig, withExceptionLogger } from '@ng-icons/core';
257
+ import { NgIcon, provideIcons, provideNgIconsConfig, withExceptionLogger } from '@ng-icons/core';
256
258
 
257
259
  bootstrapApplication(AppComponent, {
258
260
  providers: [provideNgIconsConfig({}, withExceptionLogger())],