Skip to content
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

Merged

Conversation

alexBaizeau
Copy link
Contributor

As per #692

@alexBaizeau
Copy link
Contributor Author

I have a hard time figuring out why the build failed, any pointer?

Copy link
Contributor

@chancancode chancancode left a 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
Copy link
Contributor

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
Copy link
Contributor

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)

@locks locks merged commit 4489958 into ember-learn:octane Mar 30, 2019
@alexBaizeau alexBaizeau deleted the angle-bracket--routing-query-params branch March 30, 2019 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants