import { Routes } from '@angular/router'; import {WatchdogTopComponent} from "./watchdog/watchdog-top/watchdog-top.component"; import {IndexComponent} from "./index/index.component"; export const routes: Routes = [ { path: 'watchdog',component: WatchdogTopComponent }, {path: '',component:IndexComponent}, {path: '**',redirectTo:"/"} ];