DEV Community

Angular Between Module error

Anandaraj on March 05, 2024

In Angular , I have two module. Module A and Module B. I have import B module to A module. I need A module component to B module. so , i am imported A module to B. but's showing error.

@angular_rust

Collapse
 
geromegrignon profile image
Gérôme Grignon

The best solution is to avoid using Modules in favor of the Standalone API.

About Modules, if something needs to be shared in multiple Modules, move it to a third dedicated one.