在我的程序中,我在 canActivateChild 中有一个函数需要在 canActivate finished 之后发生,但是子组件在父完成的 canActivate 之前加载,为什么?
my routing-module:
const routes: Routes = [
{
path: '',
component: MainComponent,
canActivate: [LoadDataGuard, ConfigureJsGuard],
canActivateChild: [EnterChildGuard],
canDeactivate: [CleanupJsGuard],
data: {
modelService: ModelService,
} ,
children: [
{
component: ChildComponent,
.......