Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1771 from Polymer/__queryParams
Browse files Browse the repository at this point in the history
On a route object, queryParams has underscores
  • Loading branch information
Arthur Evans authored Oct 7, 2016
2 parents c23ecbd + 12d50f2 commit c15a706
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/1.0/blog/routing/demo1.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,13 @@
// Route objects are composed of the `path` that we want to
// match on, the `prefix`, which is everything that has already
// been matched by someone else before it got to us, and
// a queryParams object, which represents the ?key=value part
// an __queryParams object, which represents the ?key=value part
// of the URL.
return {path: '/store/garden', prefix: '', queryParams: {}}
// __queryParams is preceded by underscores because unless you're
// doing the power-user thing of generating your own route objects,
// you want to access query params directly from the <app-route>
// element.
return {path: '/store/garden', prefix: '', __queryParams: {}}
}
}
}
Expand Down

0 comments on commit c15a706

Please sign in to comment.