OLD | NEW |
1 ## Router for Web Components | 1 ## Router for Web Components |
2 > Works with [Polymer](http://www.polymer-project.org/), [X-Tag](http://www.x-ta
gs.org/), and natively with the [platform](https://github.com/Polymer/platform)
polyfill. | 2 > Works with [Polymer](http://www.polymer-project.org/), [X-Tag](http://www.x-ta
gs.org/), and natively with the [platform](https://github.com/Polymer/platform)
polyfill. |
3 | 3 |
4 > [erikringsmuth.github.io/app-router](http://erikringsmuth.github.io/app-router
) | 4 > [erikringsmuth.github.io/app-router](http://erikringsmuth.github.io/app-router
) |
5 | 5 |
6 Lazy-loads content. Binds path variables and query parameters to the page elemen
t's attributes. Supports multiple layouts. Works with `hashchange` and HTML5 `pu
shState`. One set of routes will match regular paths `/`, hash paths `#/`, and h
ashbang paths `#!/`. | 6 Lazy-loads content. Binds path variables and query parameters to the page elemen
t's attributes. Supports multiple layouts. Works with `hashchange` and HTML5 `pu
shState`. One set of routes will match regular paths `/`, hash paths `#/`, and h
ashbang paths `#!/`. |
7 | 7 |
8 [Download](https://github.com/erikringsmuth/app-router/archive/master.zip) or ru
n `bower install app-router --save`. | 8 [Download](https://github.com/erikringsmuth/app-router/archive/master.zip) or ru
n `bower install app-router --save`. |
9 | 9 |
10 ## Configuration | 10 ## Configuration |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 ```html | 180 ```html |
181 <script src="/bower_components/app-router/src/app-router.js"></script> | 181 <script src="/bower_components/app-router/src/app-router.js"></script> |
182 ``` | 182 ``` |
183 | 183 |
184 To build: | 184 To build: |
185 - Run `bower install` and `npm install` to install dev dependencies | 185 - Run `bower install` and `npm install` to install dev dependencies |
186 - Lint, build, and minify code changes with `gulp` (watch with `gulp watch`) | 186 - Lint, build, and minify code changes with `gulp` (watch with `gulp watch`) |
187 - Start a static content server to run tests (node `http-server` or `python -m S
impleHTTPServer`) | 187 - Start a static content server to run tests (node `http-server` or `python -m S
impleHTTPServer`) |
188 - Run unit tests in the browser (PhantomJS doesn't support Web Components) [http
://localhost:8080/tests/SpecRunner.html](http://localhost:8080/tests/SpecRunner.
html) | 188 - Run unit tests in the browser (PhantomJS doesn't support Web Components) [http
://localhost:8080/tests/SpecRunner.html](http://localhost:8080/tests/SpecRunner.
html) |
189 - Manually run functional tests in the browser [http://localhost:8080/tests/func
tional-test-site/](http://localhost:8080/tests/functional-test-site/) | 189 - Manually run functional tests in the browser [http://localhost:8080/tests/func
tional-test-site/](http://localhost:8080/tests/functional-test-site/) |
OLD | NEW |