Skip to content

Commit 1f5b257

Browse files
committed
Add a subroute on tutorials
1 parent 1b16ded commit 1f5b257

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
33
import { TutorialsComponent } from './tutorials.component';
4+
import { InputComponent } from './input/input.component';
45

56
const routes: Routes = [
6-
{ path: '', component: TutorialsComponent },
7+
{
8+
path: '',
9+
component: TutorialsComponent,
10+
children: [
11+
{ path: 'input', component: InputComponent },
12+
],
13+
},
714
];
815

916
export const TutorialsRoutingModule = RouterModule.forChild(routes);

0 commit comments

Comments
 (0)