Skip to content
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

Docs: Angular-props Use component param from the story return #8762

Closed
CodeByAlex opened this issue Nov 8, 2019 · 1 comment
Closed

Docs: Angular-props Use component param from the story return #8762

CodeByAlex opened this issue Nov 8, 2019 · 1 comment

Comments

@CodeByAlex
Copy link
Member

Is your feature request related to a problem? Please describe.
The adoption of angular props with docs would be a lot easier if we didn't have to specify the component twice in the stories file. The docs suggest adding "component: ComponentName" as a param: https://github.com/storybookjs/storybook/tree/next/addons/docs/angular. Would it be possible to us the component returned in the JSON of the story:

export const story = () => {
return {
template: <tag></tag>,
component: TagComponent, <----
};
};

Are you able to assist bring the feature to reality?
no

@shilman
Copy link
Member

shilman commented Nov 8, 2019

Closing as dupe to #8673

@shilman shilman closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants