Skip to content

Adding nested angular component ? #2691

@titusfx

Description

@titusfx

Issue details

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.

Steps to reproduce

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 ).

https://ibb.co/dTXdU6

Please specify which version of Storybook and optionally any affected addons that you're running

  • @storybook/angular 1.5.x

Affected platforms

  • If UI related, please indicate browser, OS, and version
  • If dependency related, please include relevant version numbers
  • If developer tooling related, please include the platform information

Screenshots / Screencast / Code Snippets (Optional)

// code here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions