UI-Router provides extremely flexible, state based routing to the React ecosystem.
The UI-Router package is distributed using npm, the node package manager.
npm install --save ui-router-react
Learn UI-Router by following our tutorials.
The UI-Router Sample App is a non-trivial UI-Router application.
To fix a UI-Router bug, or create an enhancement, follow these steps:
To get started you will need to clone the UI-Router Core and UI-Router React repositories.
git clone https://github.com/ui-router/core ui-router-core git clone https://github.com/ui-router/react ui-router-react
Then, you will need to build ui-router core and link it locally using
cd ui-router-core npm install npm link npm run build
Then, link to it from the ui-router-react repository
cd ../ui-router-react npm install npm link ui-router-core
To make changes to
ui-router-core you should run the
npm run watch script from the
This will watch the ui-router core code, compile it, and run the test suite when the core code (or tests) are modified.
cd ../ui-router-core npm run watch