alert-routing.module.ts 746 B

12345678910111213141516171819
  1. import { NgModule } from '@angular/core';
  2. import { RouterModule, Routes } from '@angular/router';
  3. import {AlertCenterComponent} from "./alert-center/alert-center.component";
  4. import {AlertSettingComponent} from "./alert-setting/alert-setting.component";
  5. import {AlertNoticeComponent} from "./alert-notice/alert-notice.component";
  6. const routes: Routes = [
  7. { path: '', component: AlertCenterComponent },
  8. { path: 'center', component: AlertCenterComponent },
  9. { path: 'setting', component: AlertSettingComponent },
  10. { path: 'notice', component: AlertNoticeComponent },
  11. { path: '**', component: AlertCenterComponent }
  12. ];
  13. @NgModule({
  14. imports: [RouterModule.forChild(routes)],
  15. exports: [RouterModule]
  16. })
  17. export class AlertRoutingModule { }