I have created routes like this
{path: 'trainings', component: TrainingWrapperComponent,
children:[
{path: '', component: TrainingsListComponent},
{path: 'createTraining', component: ManageTrainingComponent},
{path: 'trainingLanguage', component: TrainingLanguageComponent},
]
},
Now when I navigate to child route from trainings, I am able to do it. But if I refresh or I try to open the url directly. I am not able to do that.
For instance trainings/createTraining is throwing http errors because it is trying to fetch resources by taking training/ as the base url .