ionic 5 fallback route code example
Example: ionic 5 fallback route
const routes: Route = [
{path: "OtherPaths",component: OtherPathsComponent},
{path: "PathNotFound", component: PathNotFoundComponent},
{path: "**", redirectTo: "PathNotFound"}
]