Releases: ui-router/react
Releases · ui-router/react
0.2.2
0.2.0
Changed
- Exported default value is now the
UIRouterReact
class instead of an instance. - The class takes now care of setting up the
viewConfigFactory
andreactViewBuilder
so user doesn't need to. - Renamed all symbols to UI* from Ui* for consistency with
ui-router-core
. UISref
only accepts a single valid element as child.UISrefActive
properly track multiple descendantsUISref
component and track their specified states for applying the active class.
Added
UISref
andUISrefActive
properly copy over all props and class names of thir children, adding more flexibility for the user.UIView
rendered component exposes two props from the router:resolves
andtransition
. They act as an injected dependecy of the state-component, and are used to interact with the router itself.UIView
registers asonBefore
hook theuiCanExit
method of the component instance it renders.UISrefActive
: by passing aextact={true}
props it will only activate when the exact target state used in theUISref
is active.html5Mode
added to UIRouterReact class for usingpushStateLocation
instead ofhashLocation
as history strategy (WARNING: This is a temporary api and will likely change in the future)