angular-docs-cn/modules/@angular/router
vsavkin fe47e6b783 fix(router): rerun resolvers when url changes
Closes #12603
2016-10-28 15:17:00 -07:00
..
scripts
src fix(router): rerun resolvers when url changes 2016-10-28 15:17:00 -07:00
test fix(router): rerun resolvers when url changes 2016-10-28 15:17:00 -07:00
testing fix(router): module loader should start compiling modules when stubbedModules are set (#11742) 2016-10-20 10:58:53 -07:00
.gitignore
CHANGELOG.md
LICENSE
README.md
index.ts
karma-test-shim.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
karma.conf.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
package.json
rollup-testing.config.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
rollup.config.js fix(router): correctly export filter operator in es5 (#12286) 2016-10-17 23:06:19 -07:00
tsconfig-build.json
tsconfig-testing.json

README.md

Angular Router

Managing state transitions is one of the hardest parts of building applications. This is especially true on the web, where you also need to ensure that the state is reflected in the URL. In addition, we often want to split applications into multiple bundles and load them on demand. Doing this transparently isnt trivial.

The Angular router is designed to solve these problems. Using the router, you can declaratively specify application state, manage state transitions while taking care of the URL, and load components on demand.

Overview

Read the overview of the Router here.

Guide

Read the dev guide here.

Local development

# keep @angular/router fresh
$ ./scripts/karma.sh

# keep @angular/core fresh
$ ../../../node_modules/.bin/tsc -p modules --emitDecoratorMetadata -w

# start karma
$ ./scripts/karma.sh