-
-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs for the built-in components in routing/query-params.md
#698
Update docs for the built-in components in routing/query-params.md
#698
Conversation
I have a hard time figuring out why the build failed, any pointer? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor copy-edits but otherwise LGTM
@@ -83,25 +83,26 @@ With this code, we have established the following behaviors: | |||
full router transition (i.e. it won't call `model` hooks and | |||
`setupController`, etc.); it will only update the URL. | |||
|
|||
### link-to Helper | |||
### LinkTo component |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we probably want <LinkTo />
here to be consistent, but I'm not 100% sure 🤔
``` | ||
|
||
In the above examples, `direction` is presumably a query param property | ||
on the `posts` controller, but it could also refer to a `direction` property | ||
on any of the controllers associated with the `posts` route hierarchy, | ||
matching the leaf-most controller with the supplied property name. | ||
|
||
The `link-to` helper takes into account query parameters when determining | ||
The `<LinkTo>` component takes into account query parameters when determining |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<LinkTo />
, to be consistent (I'm actually not a 100% sure if we want to consistently do <LinkTo>
or consistently do <LinkTo />
; but so far we have been doing the latter and I think it's better to keep it consistent and fix everything in one go later if we want to)
As per #692