{path: 'user/home', component: HomeComponent},
{path: 'user/other', component: OtherComponent}
And
{
path: 'user', children: [
{path: 'home', component: HomeComponent},
{path: 'other', component: OtherComponent}
]
}
What are child routes to angular for? What is the fundamental difference between these two records?
Will patchmatch work the same for both cases? What I mean. Angular divides the url path into a tree of segments (user/list -> user, list).
pathMatch: full tells angular that it is required to match the segment value completely without going down to the child elements if this value does not match. Is it true that regardless of the recording option, the url segment tree will have the same structure?