-
-
Notifications
You must be signed in to change notification settings - Fork 405
Description
This looks like a missing piece to achieve parity between "ember and glimmer" components when using the (component) helper.
With angle brackets and the distinction between arguments and attributes it is no longer possible to pass down attributes to those components. Everything in there will be turned into arguments.
Imagine, I markup my component that way:
<MyComponent @reallyImportantArgument={{this.foo}} disabled={{false}}/>It will not work with a component helper:
{{component 'my-component' reallyImportantArgument=this.foo disabled=false}}the latter "param" (disabled=false) will be passed as argument instead of attribute. One workaround is to use the let helper and use angle bracket syntax. However, this does not work when you want to yield a "preconfigured" component, e.g.
{{yield (hash
MyComponent=(component 'my-component' reallyImportantArgument=this.foo disabled=false)
)}}I don't know if this is already possible somehow or if this is in a need for a RFC to complete the feature set for octane.