Created
November 4, 2019 19:05
-
-
Save parzibyte/053a2e912dacabc9f689d3118a4c6c59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const routes: Routes = [ | |
{ path: "mascotas", component: ListarMascotasComponent }, | |
{ path: "mascotas/agregar", component: AgregarMascotaComponent }, | |
{ path: "", redirectTo: "/mascotas", pathMatch: "full" },// Cuando es la raíz | |
{ path: "**", redirectTo: "/mascotas" } | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment