You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems like angle bracket components may not support positional params. The Syntax Conversion Guide suggests that updating positional params to angle brackets involves named arguments instead.
I can think of four possible ways to address this:
If angle brackets do support positional params, we should update this guide section to use it. I'm happy to make that change, but I'd need help to know how to use positional params with angle brackets. <TestComponent 'foo' 'bar' /> gives me the error "' is not a valid character within attribute names"
If angle brackets don't support positional params, we could remove the positional params section from the guides, since the guides now teach angle brackets and angle brackets don't support positional params.
Or, we could keep the positional params section with curly syntax, and add a note that you have to use curly syntax if you want to use positional params.
Or, we could mention that positional params used to be supported, but aren't in angle brackets.
I recommend options 1 or 2 over 3 or 4, so that we keep the guides focused on the new angle brackets approach.
I'm happy to make whichever change we choose, just need help choosing!
I think adding a note about only curlies supporting them is fine for now
and remove it in the MVP
"only classic invocation syntax supports positional params. to learn more, see the "
Activity
[-]Update Content sub-section: Components: Passing Arguments[/-][+]Update content sub-section: Components: Passing Arguments[/+]CodingItWrong commentedon Feb 14, 2019
it seems like angle bracket components may not support positional params. The Syntax Conversion Guide suggests that updating positional params to angle brackets involves named arguments instead.
I can think of four possible ways to address this:
<TestComponent 'foo' 'bar' />gives me the error "' is not a valid character within attribute names"I recommend options 1 or 2 over 3 or 4, so that we keep the guides focused on the new angle brackets approach.
I'm happy to make whichever change we choose, just need help choosing!
jenweber commentedon Feb 14, 2019
@CodingItWrong positional params are not directly supported in Angle Brackets.
Another option is, replace the section with steps to make your own positional params support in Angle Brackets.
I lean towards #2 because positional params are not considered best practice anyway.
CodingItWrong commentedon Feb 15, 2019
Feedback from @locks via Discord:
jenweber commentedon Mar 27, 2019
Closed with work in https://github.com/ember-learn/guides-source/blob/octane/guides/release/components/arguments-and-attributes.md