import { CreateComponent } from './modules/create/create.component' ; import { HomeComponent } from './modules/home/home.component' ; import { ImportComponent } from './modules/import/import.component' ; import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { SettingsComponent } from './modules/settings/settings.component' ; const routes = [ { path : '' , component : HomeComponent , } , { path : 'create' , component : CreateComponent , } , { path : 'import' , component : ImportComponent , } , { path : 'settings' , component : SettingsComponent , } , ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes ) ] , exports : [ RouterModule ] } ) export class AppRoutingModule { }