Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: polymer_1.0.4/bower_components/app-router/README.md

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_1.0.4/bower_components/app-router/README.md
diff --git a/polymer_0.5.4/bower_components/app-router/README.md b/polymer_1.0.4/bower_components/app-router/README.md
similarity index 94%
copy from polymer_0.5.4/bower_components/app-router/README.md
copy to polymer_1.0.4/bower_components/app-router/README.md
index 2c3e7575ba595237d3eb3da69d969472542a366d..a6eead7a2399ed43021143fe9e12c43041178414 100644
--- a/polymer_0.5.4/bower_components/app-router/README.md
+++ b/polymer_1.0.4/bower_components/app-router/README.md
@@ -1,5 +1,5 @@
## Router for Web Components
-> Works with [Polymer](http://www.polymer-project.org/), [X-Tag](http://www.x-tags.org/), and natively.
+> Works with [Polymer](https://www.polymer-project.org/), [X-Tag](http://www.x-tags.org/), and natively.
>
> [erikringsmuth.github.io/app-router](https://erikringsmuth.github.io/app-router/)
@@ -45,7 +45,7 @@ Click links or call `router.go()`.
```html
<!-- hashchange -->
-<a href="/#/home">Home</a>
+<a href="#/home">Home</a>
<!-- pushState() -->
<a is="pushstate-anchor" href="/home">Home</a>
@@ -59,7 +59,7 @@ Click links or call `router.go()`.
The router listens to `popstate` and `hashchange` events. Changing the URL will find the first `app-route` that matches, load the element or template, and replace the current view.
#### hashchange
-Clicking `<a href="/#/home">Home</a>` will fire a `hashchange` event and tell the router to load the first route that matches `/home`. You don't need to handle the event in your Javascript. Hash paths `/#/home` match routes without the hash `<app-route path="/home">`.
+Clicking `<a href="#/home">Home</a>` will fire a `hashchange` event and tell the router to load the first route that matches `/home`. You don't need to handle the event in your Javascript. Hash paths `#/home` match routes without the hash `<app-route path="/home">`.
#### pushState
You can use the [pushstate-anchor](https://github.com/erikringsmuth/pushstate-anchor) or [html5-history-anchor](https://github.com/erikringsmuth/html5-history-anchor) to extend `<a>` tags with the HTML5 history API.
« no previous file with comments | « polymer_1.0.4/bower_components/app-router/LICENSE.md ('k') | polymer_1.0.4/bower_components/app-router/app-router.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698