import { NgModule } from '@angular/core' ; import { Routes , RouterModule } from '@angular/router' ; import { RightsResolver } from '../resolvers/rights-resolver.service' ; import { RightsComponent } from './rights.component' ; const routes = [ { path : '' , pathMatch : 'full' , data : { breadcrumb : 'List' } , resolve : { rights : RightsResolver } , component : RightsComponent } ] ; @ NgModule ( { imports : [ RouterModule . forChild ( routes ) ] , exports : [ RouterModule ] } ) export class RightsRoutingModule { }