Improve this doc View source

ui-state
directive in module ui.router.state

Description

Much like ui-sref, but will accept named $scope properties to evaluate for a state definition, params and override options.

Dependencies

Usage

as attribute
<ANY ui-state="{string}"
     ui-state-params="{Object}"
     ui-state-opts="{Object}">
   ...
</ANY>

Parameters

ParamTypeDetails
ui-statestring

'stateName' can be any valid absolute or relative state

ui-state-paramsObject

params to pass to $state.href()

ui-state-optsObject

options to pass to $state.go()