UISrefStatus | UI-Router
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UISrefStatus

A directive (which pairs with a UISref) and emits events when the UISref status changes.

This directive is used by the UISrefActive directive.

The event emitted is of type SrefStatus, and has boolean values for active, exact, entering, and exiting

The values from this event can be captured and stored on a component, then applied (perhaps using ngClass).

This API is subject to change.

Hierarchy

  • UISrefStatus

Index

Constructors

Properties

_globals: UIRouterGlobals
_subscription: Subscription
srefs: QueryList<UISref>

Monitor all child components for UISref(s)

Monitor all child components for UISref(s)

status: SrefStatus

The current status

The current status

uiSrefStatus: EventEmitter<SrefStatus>

current statuses of the state/params the uiSref directive is linking to

current statuses of the state/params the uiSref directive is linking to

Methods

  • ngAfterContentInit(): void
  • ngOnDestroy(): void

Generated using TypeDoc