So i have a parent component with a router nested inside of it
<parent>
<router-outlet></router-outlet>
</parent>
When parent is created a call to the server is made obtaining a large JSON object lets just call it human body. Then when the user clicks on links in the parent component, they'll navigate through components of the child router there is an arm component, leg component...i.e(trying to break down the components of the body data for manipulation). The parents and children are communicating through a bi directionalservice.
How can i protect the url so that the user cannot just go to parent/bodycomponent in the browser url tab they can only access a child component by abiding to the flow of the application. I've looked into can activate child but it seems to only be for services. Can i set a canActivateChild condition in the parent.component.ts?