-
-
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
[Bug]: Angular Standalone Directive & Storybook #23494
Comments
me too. |
You can get around that initial issue by simply leaving out the component declaration in the However while this will render the story and give you all the controls (you manually defined in the story) this won't give you a generated JSDoc documentation from the directive. You can get around that by using However this way you can't combine the controls that actually affect the story with your JSDoc, leaving you with two separate story blocks. For me this is a big annoyance and I'd love to see Angular Standalone Directives work the same way concerning the Storybook documentation as Angular Standalone Components do. 🙏 |
Since Storybook@7.5, standalone directives can be loaded! Can you give it a try and see if your issue is resolved? Thanks. |
We will test it ASAP! |
Now it works as expected, thank you for the update 😃 It would be great if the official documentation now also mentioned this use case as a |
@Leon-Hikari Feel free to provide a PR to update the docs! It would be appreciated :) Otherwise cc @jonniebigodes |
Describe the bug
When adding a standalone angular directive to storybook, we can't have the
component
prop in the export default. Storybook then throws this:To Reproduce
You can reproduce this via this repo: https://github.com/youurt/org.
System
Additional context
No response
The text was updated successfully, but these errors were encountered: