UI-Router adds flexible client-side routing to AngularJS apps. It models screens as a hierarchical state tree and keeps the browser URL in sync with navigation.
Overview
UI-Router handles client-side routing for AngularJS single-page apps. As with typical SPA routers, it syncs the browser address bar with in-app movement and allows URLs to trigger navigation, so users can bookmark deep links.
Navigation is modeled as a hierarchy of states, not a flat route list. A built-in state machine runs transitions between states with transaction-like semantics, which suits nested views and orderly flow through the app.
This build is aimed at AngularJS 1.x. UI-Router also ships for modern Angular and React; the AngularJS edition is the legacy routing engine at the center of that family.
Learners can use tutorials, API docs, guides, samples, and FAQs. Extensions like UI-Router Extras help older AngularJS setups gain features beyond the base router.
Key features
- Hierarchical application states
- Nested view routing
- URL sync with navigation
- Deep-link bookmarks
- Transaction-like state transitions
- State machine for transitions
- AngularJS integration
- Sample app and guides
Use cases
- AngularJS SPA navigation
- Nested UI layouts
- Bookmarkable app views
- Complex multi-step flows