Skip to content
Loading
  • Satish
    0
    This will not help and also not a multi nesting routes.
    My question related to N number of nesting routes.
    0
  • Mageshwaran R
    0
    Angular router considers a route with children as a non-terminal route and routing happens to terminal routes only. Angular router expects route to have a default entry for path: ''.
    To resolve this issue you should add a redirect from the parent route to one of the child routes.
     
    1. export const AdminRoutes: RouterConfig = [  
    2. {  
    3.     path: 'admin',  
    4.     component: AdminComponent,  
    5.     children: [  
    6.         { path: '', redirectTo: 'main-page', terminal: 'true' },  
    7.         { path: 'main-page', component: MainPageComponent,  
    8.         { path: 'settings', component: SettingsComponent },  
    9.     ]  
    10.  }];  
     
    0