provideIconDefaultPrefix()
ts
function readonly provideIconDefaultPrefix(prefix): ValueProvider;Defined in: providers/icon.provider.ts:16
Factory function to create a provider that sets the global default icon prefix. This allows configuring a default prefix for all icons via Angular's DI system.
Parameters
| Parameter | Type | Description |
|---|---|---|
prefix | IconPrefix | The default icon prefix to use (e.g., "fas", "far", "fab"). This will be used for all icons that do not explicitly specify a prefix. |
Returns
ValueProvider
A ValueProvider that can be added to an Angular module's providers array to set the default icon prefix.
Since
1.0.0
Author
Simon Kovtyk