import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { PlayComponent } from './play.component' ; import { PlayResolver } from './play.resolver' ; const routes = [ { path : '' , component : PlayComponent , resolve : { play : PlayResolver } } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class PlayRoutingModule { }