Answer the question
In order to leave comments, you need to log in
How to update a component in Angular when the last part of the url changes?
Hello.
The problem is that in my application one component processes three types of pages:
const routes: Routes = [
{path:'', component: SiteLayoutComponent, children: [
{path:'', component: HomePageComponent},
{path:'home', component: HomePageComponent},
{path:'about', component: AboutPageComponent},
{path:'faq', component: FaqPageComponent},
{path:'tariffs', component: TariffsPageComponent},
{path:'bezopasnost', component: BezopasnostPageComponent},
{path:'legal', component: LegalPageComponent},
{path:':category', component: PayPageComponent, children: [
{path:':service', component: PayPageComponent},
]}
]}
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question