simple,
{
   path: ' ',
   redirectTo: 'PartDetails',
   ...
}

On Friday, December 20, 2019 at 3:35:22 AM UTC+1, ahmed elbarbary wrote:
>
> 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/e345c48d-c521-412a-8452-74891d9260a2%40googlegroups.com.

Reply via email to