diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts new file mode 100644 index 0000000..3cc6bc9 --- /dev/null +++ b/src/app/app-routing.module.ts @@ -0,0 +1,25 @@ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; + +import { WizardBaseComponent } from './wizard-base/wizard-base.component'; +import { ModalOneComponent } from './wizard-base/modal-one/modal-one.component'; +import { ModalTwoComponent } from './wizard-base/modal-two/modal-two.component'; + +const routes: Routes = [ + { + path: 'wizard', + component: WizardBaseComponent, + children: [ + { path: '1', component: ModalOneComponent }, + { path: '2', component: ModalTwoComponent }, + ] + }, + { path: '', redirectTo: '/wizard', pathMatch: 'full' }, +]; + +@NgModule({ + imports: [ RouterModule.forRoot(routes) ], + exports: [ RouterModule ] +}) +export class AppRoutingModule { +} diff --git a/src/app/app.component.html b/src/app/app.component.html index b6931b5..0680b43 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,3 +1 @@ -
+ wizard-base works! +
+