Constructors
Section titled "Constructors"IgxStylesRegistrar
new IgxStylesRegistrar(): IgxStylesRegistrar Returns IgxStylesRegistrar
Methods
Section titled "Methods"register
Section titled "register"Registers a stylesheet identified by id. Subsequent calls with the same
id (against the same document) are no-ops, so it is safe to call from every
component instance.
register(id: symbol, css: string): void Defined in projects/igniteui-angular/core/src/services/styles/styles-registrar.service.ts:43
Parameters
- id:
symbolA module-level
Symbolthat uniquely identifies the stylesheet. - css:
stringThe CSS string to register (typically a generated
*.styles.tsexport).