undefined.model.ts 462 B

12345678910111213141516171819202122
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule } from '@angular/router';
  3. // 组件
  4. import { undefinedComponent } from './undefined/undefined.component';
  5. // 定义常量 路由
  6. const routes: any = [
  7. {
  8. path: 'undefined',
  9. component: undefinedComponent
  10. }
  11. ];
  12. @NgModule({
  13. imports: [
  14. RouterModule.forChild(routes)
  15. ],
  16. providers: [],
  17. declarations: [undefinedComponent]
  18. })
  19. export class undefinedModule {}