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

_deregisterHook: any
_globals: Globals
_stateService: StateService
sref: UISref
uiSrefStatus: EventEmitter<SrefStatus>

Methods

  • ngOnDestroy(): void
  • ngOnInit(): void
  • processTransition($transition$: Transition): void

Object literals

status: object
active: boolean
entering: boolean
exact: boolean
exiting: boolean

Generated using TypeDoc