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

On a route object, queryParams has underscores #1771

Merged
merged 1 commit into from
Oct 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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