假设我们正在从模块 A 延迟加载模块 B。例如:
// routes for module A
const routes: Routes = [
{ path: '', loadChildren: './pages/B/B.module#BModule'}
]
// routes for module B
const routes: Routes = [
{ path: '', component: 'BComponent'}
]
我的问题是我应该在哪里使用组件/模块 B 的解析。在 A 或 B 的路线内?哪个是正确/更好的方法?