Skip to content

bind:this and bind:property wrong way round in the documentation? #3484

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

Closed
Pjaerr opened this issue Aug 31, 2019 · 2 comments
Closed

bind:this and bind:property wrong way round in the documentation? #3484

Pjaerr opened this issue Aug 31, 2019 · 2 comments

Comments

@Pjaerr
Copy link

Pjaerr commented Aug 31, 2019

Maybe I am wrong but it seems like the documentation for bind:this should come before the documentation for bind:property (just flip them around) as the bind:property documentation says: "You can bind to component props using the same mechanism." despite the documentation before it being on:eventname.

I also may just be viewing this incorrectly 😄

https://svelte.dev/docs#bind_component_property

@Conduitry
Copy link
Member

I think leaving https://svelte.dev/docs#bind_component_property before https://svelte.dev/docs#bind_component makes sense, but https://svelte.dev/docs#bind_component_property should probably mention mechanism it's referring to. I think that sentence got moved around and was originally right after we talked about <input> binding. We could say something like 'using the same mechanism as on elements'.

@Conduitry Conduitry added the docs label Aug 31, 2019
@Pjaerr
Copy link
Author

Pjaerr commented Sep 1, 2019

@Conduitry That makes sense, I definitely think that's the better idea provided the rest of the docs are going that way (not based on the order in the docs, usable as isolated docs etc)

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

No branches or pull requests

2 participants