I followed the Tour-of-Hero tutorial on the official Angular2 page. But I took another step by adding lazy-loading modules.
I have the following function modules:
Module Dashboard
Module Hero
- hero list component
- hero component component
- hero search component
- hero search service
- hero model
The hero-search component is a directive that should be used in the dashboard module.
However, according to this Angular2 architechture documentation, the Routed module should not be imported by others. So I do not have to import the Hero module into the Dashboard module. If I do, my routes no longer work.
, - -, Hero Module .
, Dashboard?