We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to do this:
<ModalDialog data-test-foobar />
But the component does not use the HTML attrs passed to the component :(
The text was updated successfully, but these errors were encountered:
Since an inner component is invoked using the component helper, I think the best way to solve this would be to change modal-dialog.hbs to this:
component
modal-dialog.hbs
{{#let (component modalDialogComponentName) as |InnerComponent|}} <InnerComponent ...attributes> {{/let}}
and then in each inner component, also add ...attributes.
...attributes
I am not 100% sure what version of Ember is required to make this work, and if older versions would silently ignore it or not.
Would be up for making a PR if this is a good approach!
Sorry, something went wrong.
Here's a sample repo showing how it would work: https://github.com/mehulkar/ember-example-inner-component-slat-attrs
(ember-twiddle latest Ember is 3.4, which doesn't seem to support splattributes inside a let block, but here's that as well: https://ember-twiddle.com/16113c250d089fcacbfc89e01f059d49?openFiles=styles.app.css%2Ctemplates.components.baz-bar.hbs)
No branches or pull requests
I would like to do this:
<ModalDialog data-test-foobar />
But the component does not use the HTML attrs passed to the component :(
The text was updated successfully, but these errors were encountered: