I work on angular 7 I need to make default routing for my web app
I need to to make default routing to my web app
Now on my web app when open on first time it show like that
localhost:4200
I need to set default routing to open for first time as below
localhost:4200/PartDetails
my app-routing.module.ts
import { QualificationsComponent } from
'./Pages/qualifications/qualifications.component';
import { FamilyComponent } from './Pages/family/family.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { OverviewComponent } from './Pages/overview/overview.component';
import { ManufacturingComponent } from
'./Pages/manufacturing/manufacturing.component';
import { PackageComponent } from './Pages/package/package.component';
import { ParametricComponent } from
'./Pages/parametric/parametric.component';
const routes: Routes = [
{ path: '', component: OverviewComponent },
{ path: 'overview', component: OverviewComponent },
{ path: 'family', component: FamilyComponent },
{path:'manufacturing',component:ManufacturingComponent},
{path:'package',component:PackageComponent},
{path:'parametric',component:ParametricComponent},
{path:'qualifications',component:QualificationsComponent},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
How to do default routing
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/2a980d65-f06e-4d87-afd6-ada87991668f%40googlegroups.com.