-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Proposal] Re-name the nested helper (subexpression) to "html-attributes" #2
Comments
{{my-component mySpecialThing="my special value" (html-attributes aria-labelledby="label-name")}} Small nit, but your second example is not syntactically valid. Positional arguments must come before named arguments. |
@mmun Ah! Fixed. |
I'm not opposed to renaming though I don't have an issue with the current name... |
I'm probably stating the obvious, but the advantage of I and likely many others (hopefully?) tend to write component invocations in multiple lines anyways. {{my-component posArg1 posArg2
(html-attributes
role="button"
aria-labelledby="label-name"
title=title
)
showStuff=true
levelOfFanciness="over-9000"
doYouLikeLlamas="absolutely"
dogOrCatPerson="dog"
}} |
Let's go with |
Seems good to me. Any takers on doing the PR? |
Closed by #5 |
When the concept was first proposed, @mmun suggested the following:
I wonder if there is consensus to circle back to that naming? It think
html-attributes
more clearly solidifies that the helper is intended to apply native HTML attributes to a component. Whereas, just usingattributes
could potentially confuse new adopters of Ember. I'm anticipating new adopters might try something like:I know it seems odd, but I've seen other frameworks that tend to conflate properties and attributes.
The text was updated successfully, but these errors were encountered: