import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { BasicLoginComponent } from './basic-login/basic-login.component' ; const routes = [ { path : '' , redirectTo : 'basicLogin' , pathMatch : 'full' } , { path : 'basicLogin' , component : BasicLoginComponent , } , ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] , declarations : [ ] , } ) export class OpenSourceRoutingModule { }