You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I would like to reuse components such as AssetsComponent. As for issue #1357 we could reuse it on version 1.x.x, but on version 2 you added logic on the constructor of CatalogModule (pageService.registerPageTab(...)) and I got an error Error: A page with the tab "catalog.products" has already been registered when I try navigate to Products.
Reproduce
Create new plugin
Create component and import CatalogModule to reuse AssetComponent
Possible work-around (not tried this, it just came to me as an idea to try):
Create an NgModule, add the AssetsComponent to the declarations array, import SharedModule in the imports, and then import that new NgModule into your component's imports array.
I tried your idea, but got an error Cannot declare 'AssetsComponent' in an NgModule as it's not a part of the current compilation.. Angular just allows to import module.
Describe the bug
I would like to reuse components such as AssetsComponent. As for issue #1357 we could reuse it on version 1.x.x, but on version 2 you added logic on the constructor of CatalogModule (
pageService.registerPageTab(...)
) and I got an errorError: A page with the tab "catalog.products" has already been registered
when I try navigate to Products.Reproduce
Have you had any solution to solve this issue? Thank you a lot!
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: