CopyPastor

Detecting plagiarism made easy.

Score: 0.8018012046813965; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2020-11-21
by Kavinda Senarathne

Original Post

Original - Posted on 2017-11-09
by Fateh Mohamed



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You can set routes as follows.
const routes: Routes = [ { path: 'parent-component', //<---- parent component declared here component: ParentComponent, children: [ //<---- child components declared here { path:'profile-menu-items', component: ProfileMenuItemsComponent }, { path:'profile-menu-images', component: ProfileMenuImagesComponent }, { path:'profile-menu-location', component: ProfileMenuLocationComponent } ] } ];

add redirect to basic in your routes config:
export const appRoutes: Routes = [ { path: 'profile', component: ProfileComponent, children: [ { path:'', redirectTo: 'basic', pathMatch: 'full' }, { path: 'basic', component: BasicComponent, pathMatch: 'full' }, { path: 'company', component: CompnayComponent }, { path: 'contacts', component: ContactsComponent }, { path: 'compliance', component: ComplianceComponent } ] }

        
Present in both answers; Present only in the new answer; Present only in the old answer;