📜  ionic 5 fallback route - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:39.492000             🧑  作者: Mango

代码示例1
const routes: Route = [
  {path: "OtherPaths",component: OtherPathsComponent},
  {path: "PathNotFound", component: PathNotFoundComponent},
  {path: "**", redirectTo: "PathNotFound"}
]