We have tried with PLATFORM.modulename as well, But still we could not get routes.
This is what has been in typescript for another project. It is working
configureRouter(config: RouterConfiguration, router: Router) {
config.title = ‘Medical Review’;
config.options.pushState = true;
config.map([{
route: ['', 'home/:retain?'],
name: 'home',
settings: { icon: 'home' },
moduleId: PLATFORM.moduleName('../dashboard/dashboard'),
nav: true,
breadcrumb: true
},
{
route: 'abstraction-dashboard/:id/:retain?',
name: 'abstractionDashBoard',
settings: { icon: 'th-list' },
moduleId: PLATFORM.moduleName('../dashboard/dashboard'),
nav: false
}]);
config.mapUnknownRoutes(’…/error/error’);
this.router = router;
}