To configure a route I need a ViewModel and optionally a View, but many times I see that ViewModel is required only to get a html. As result, I stay with many empty classes in js/ts files, just to make router config work.
The question: is there any way to remove this empty classes and configure routes like this:
config.map([
{ route: ['', '/'], moduleId: 'no-selection.html', title: 'Select'},
{ route: 'about', moduleId: 'about.html', title:'About'},
{ route: 'contacts/:id', moduleId: 'contact-detail', name:'contacts'}
]);