lit-ui-router / UiSrefActiveDirective
Class: UiSrefActiveDirective
Defined in: packages/lit-ui-router/src/ui-sref-active.ts:182
Directive class that adds CSS classes based on active state.
This directive is used internally by the uiSrefActive directive function. It watches the current router state and applies CSS classes to elements when their associated states are active.
The directive can operate in two modes:
- Explicit state: Provide a state name to watch
- Container mode: Automatically watch nested uiSref directives
See
- uiSrefActive for the public API
- AsyncDirective
- SrefStatus