IgxStylesRegistrar

new IgxStylesRegistrar(): IgxStylesRegistrar

Returns IgxStylesRegistrar

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: symbol

    A module-level Symbol that uniquely identifies the stylesheet.

  • css: string

    The CSS string to register (typically a generated *.styles.ts export).

Returns void