mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
feat(demo): add demo Angular application
This commit is contained in:
14
packages/angular/demo/src/app/app-routing.module.ts
Normal file
14
packages/angular/demo/src/app/app-routing.module.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
||||
{ path: 'inputs', loadChildren: 'app/inputs/inputs.module#InputsModule' },
|
||||
{ path: 'home', loadChildren: 'app/home/home.module#HomeModule' }
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule { }
|
Reference in New Issue
Block a user