import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CreateSnippetComponent } from './create-snippet/create-snippet.component';
import { AngularThirtySecondsComponent } from './angular-thirty-seconds.component';

const routes: Routes = [
  {path: '', component: AngularThirtySecondsComponent},
  {path: 'new', component: CreateSnippetComponent}
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})

export class AngularThirtySecondsRoutingModule {
}

import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CreateSnippetComponent } from './create-snippet/create-snippet.component';
import { AngularThirtySecondsComponent } from './angular-thirty-seconds.component';
import { SlidesRoutes } from '@codelab/slides/src/lib/routing/slide-routes';

const routes = RouterModule.forChild(
  [
    {path: 'new', component: CreateSnippetComponent},
    ...SlidesRoutes.get(AngularThirtySecondsComponent)
  ]
);

@NgModule({
  imports: [routes],
  exports: [RouterModule]
})

export class AngularThirtySecondsRoutingModule {
}

Fix - returned routing to snippet component
Fix - returned routing to snippet component

