-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Angular: Use parameters.component
if available
#8673
Comments
parameters.component
if available
@shilman always up to date ? I rephrase to make sure I understand. if it's ok, it can be done quickly |
@ThibaudAV Given that we've already shipped 6.0, I'd say:
And the logic I had in mind is slightly different, maybe poorly phrased in the original description:
|
🤔 the component is optional if the user uses a template, no ? |
@ThibaudAV sorry, you're correct. i was only trying to document the precedence structure between the |
@ThibaudAV of course. here's the rationale: we encourage story authors to group their stories by component (formerly known as "kind"). the default export in CSF represents metadata that applies to a component, including the component itself. currently, Angular's Hope that helps, or feel free to discuss if it doesn't! 🙏 |
Olé!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.2.0-alpha.8 containing PR #13383 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
In angular stories, you currently need to pass a
component
argument as part of the story input:However, in 5.2 and later, it's recommended to pass this as part of the component metadata:
This gets translated into the underlying API call:
Therefore Angular should use
parameters.component
if it's available and the story's component ISN'T available. In 6.0 we should deprecate the Story's component, and in 7.0 we should remove support entirely.The text was updated successfully, but these errors were encountered: