# angular-ui/ui-router

The de-facto solution to flexible routing with nested views in AngularJS

Repository: https://github.com/angular-ui/ui-router
Canonical: https://ross.abutalabs.com/products/ui-router
Homepage: http://ui-router.github.io/
Language: TypeScript
License: MIT
License Family: permissive
Topics: angularjs, ui-router, javascript, typescript, routing, router, state-machine, state-tree
Last push: 2025-12-31T01:44:33+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 59, release rhythm 31, longevity 100
- inputs: {"age_days": 4975, "days_push": 246, "days_rel": 246, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13425, forks 2934 (observed 2026-08-28T04:11:03.286165+00:00)

## What it is
UI-Router is a state-based client-side routing library for AngularJS single-page applications, modeling the app as a hierarchical tree of states with nested views. It manages URL-driven navigation and state transitions in a transaction-like manner via a finite state machine.

## Use cases
- route a single-page AngularJS app with nested views
- create bookmarkable deep links within an SPA
- manage transitions between application states with a state machine
- replace ngRoute with more flexible routing
- load and resolve data before activating a route state

## When to choose
- you are building or maintaining an AngularJS (1.x) SPA needing nested views and state-based routing
- you need URL-driven navigation with hierarchical states and transactional transitions

## When to avoid
- you are building a modern Angular (2+) or React app - use the dedicated UI-Router packages or framework routers instead
- you need simple flat routing and ngRoute suffices

## Facets
- artifact type: library
- maturity: maintenance
- function: routing, middleware, state-management
- domain: web-development, frontend
- platform: browser, cross-platform
- tags: angularjs, ui-router, spa, nested-views, state-machine, client-side-routing, javascript, nodejs

## Member repositories
- angular-ui/ui-router (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:03.286165+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:18.685319+00:00, confidence not recorded.
  - readme: https://github.com/angular-ui/ui-router (fetched 2026-08-28T04:11:03.286165+00:00, sha 6088ddfa1111)
  - homepage: http://ui-router.github.io/ (fetched 2026-08-29T08:08:30.396275+00:00, sha b7a57edbc4ae)
  - registry_npm: https://registry.npmjs.org/ui-router (fetched 2026-08-29T08:08:30.405877+00:00, sha 2341e902716f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
