User:Ayush66786/sandbox

import { NgModule } from "@angular/core"; import { RouterModule, Routes } from "@angular/router"; import { WelcomeComponent } from "./home/welcome.component"; import { PageNotFoundComponent } from "./page-not-found.component";

const routes:Routes=[ {path:'welcome', component:WelcomeComponent}, {path:'', redirectTo:'welcome', pathMatch:'full'}, {path:'**', component:PageNotFoundComponent} ]

@NgModule({   declarations:[PageNotFoundComponent],    imports:[     RouterModule.forRoot(routes)

],   exports:[RouterModule] })

export class AppRoutingModule{

}