import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { CharacterListComponent } from './characters/character-list/character-list.component' ; const routes = [ { path : '' , component : CharacterListComponent } ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes , { relativeLinkResolution : 'legacy' } ) ] , exports : [ RouterModule ] } ) export class AppRoutingModule { }