Releases: ui-router/react
Releases · ui-router/react
0.2.2
0.2.0
Changed
- Exported default value is now the
UIRouterReactclass instead of an instance. - The class takes now care of setting up the
viewConfigFactoryandreactViewBuilderso user doesn't need to. - Renamed all symbols to UI* from Ui* for consistency with
ui-router-core. UISrefonly accepts a single valid element as child.UISrefActiveproperly track multiple descendantsUISrefcomponent and track their specified states for applying the active class.
Added
UISrefandUISrefActiveproperly copy over all props and class names of thir children, adding more flexibility for the user.UIViewrendered component exposes two props from the router:resolvesandtransition. They act as an injected dependecy of the state-component, and are used to interact with the router itself.UIViewregisters asonBeforehook theuiCanExitmethod of the component instance it renders.UISrefActive: by passing aextact={true}props it will only activate when the exact target state used in theUISrefis active.html5Modeadded to UIRouterReact class for usingpushStateLocationinstead ofhashLocationas history strategy (WARNING: This is a temporary api and will likely change in the future)