Adding a nested angular component which one component depends on other where those other are in different modules. If I just use the tutorial angular examples, didn't work.
Adding a nested angular component which one component depends on other where those other are in different modules. If I just use the tutorial angular examples, didn't work.
The same error can be seen in spec test in angular. And is fixed adding in declarations the component or adding into imports the module where the nested component exist ( the second solution only works if the nested component is declared in exports ngModule ).
@storybook/angular 1.5.x
_If UI related, please indicate browser, OS, and version_
// code here
Everything that component needs to be rendered should be provided with
moduleMetadata. Take a look here - https://github.com/storybooks/storybook/blob/master/examples/angular-cli/src/stories/custom-metadata.stories.ts
Thanks this definetly will fix it!
@igor-dv I think a rich documentation will avoid opening several issues .
You are right. And we will be more than happy to get PRs with docs improvements 馃槈
Most helpful comment
Everything that component needs to be rendered should be provided with
moduleMetadata. Take a look here - https://github.com/storybooks/storybook/blob/master/examples/angular-cli/src/stories/custom-metadata.stories.ts