angular 9 why canActivateChild start befor canActivate completed?

in my program I have a func in canActivateChild that need to occur after canActivate finished , but the child component loads befor canActivate of the parent finish,why? my routing-module: const routes: Routes = [ { path: ”, component: MainComponent, canActivate: [LoadDataGuard, ConfigureJsGuard], canActivateChild: [EnterChildGuard], canDeactivate: [CleanupJsGuard], data: { modelService: ModelService, } , children: [ […]

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us