import { Routes } from '@angular/router' ; import { LoginComponent } from './login/login.component' ; import { PageNotFoundComponent } from './page-not-found/page-not-found.component' ; export const APP_ROUTES = [ { path : 'login' , component : LoginComponent } , { path : '' , redirectTo : 'dashboard' , pathMatch : 'full' } , { path : '**' , component : PageNotFoundComponent } ] ;