import {RouterModule, Routes} from '@angular/router';
import {ModuleWithProviders}  from '@angular/core';
import {MessagesDemoComponent} from './messages-demo.component';

const routes: Routes = [
    { path: '', redirectTo: 'edit', pathMatch: 'full' },
    { path: 'messages', component: MessagesDemoComponent }
];

export const routing: ModuleWithProviders = RouterModule.forRoot(routes);
import {RouterModule, Routes} from '@angular/router';
import {ModuleWithProviders}  from '@angular/core';
import {MessagesDemoComponent} from './messages-demo.component';

const routes: Routes = [
    {path: '', redirectTo: 'edit', pathMatch: 'full'},
    {path: 'messages', component: MessagesDemoComponent}
];

export const routing: ModuleWithProviders = RouterModule.forRoot(routes);
--- 
+++ 
@@ -3,8 +3,8 @@
 import {MessagesDemoComponent} from './messages-demo.component';
 
 const routes: Routes = [
-    {path: '', redirectTo: 'edit', pathMatch: 'full'},
-    {path: 'messages', component: MessagesDemoComponent}
+    { path: '', redirectTo: 'edit', pathMatch: 'full' },
+    { path: 'messages', component: MessagesDemoComponent }
 ];
 
 export const routing: ModuleWithProviders = RouterModule.forRoot(routes);
Adjust to code style rules
