0
Hello, I’m encountering problems with my daughter routes.
Just follow my lead:
export const ROUTES: Routes = [
{ path: '', redirectTo: 'Login', pathMatch: 'full' },
{ path: 'Login', component: Login },
{ path: 'Cadastro', component: CadastroUser, children:
[
{ path: '', redirectTo: 'dados-pessoais', pathMatch: 'full' },
{ path: 'dados-pessoais', component: DadosPessoais},
{ path: 'bancos', component: CadastroBancos}
]
}
]
I’m having problems in the path’s daughter routes: 'Register'.
The problem is that I am inside the route: 'registration/ personal data', and I created a button this way:
<button class="btn" [routerLink]="['bancos']">Proximo Passo</button>
To go to the route: 'register/ banks'.
But this error is presented:
My outlet call goes like this:
<router-outlet></router-outlet>
Could someone help me?
I changed the button as said above and the return was: 'Error: Cannot match any Routes. URL Segment: 'register/banks''
– Guilherme Nunes
@Guilhermenunes have the <base href=". /"> in index.html ?
– Lucas Brogni
Yes. In the same way.
– Guilherme Nunes
tries to change to Register/ banks , with the main.
– Lucas Brogni
Now it’s gone! rsrs, what a wobble my rsrs, thank you
– Guilherme Nunes
heheh I tmb did not notice that heheh ! Thanks ! D
– Lucas Brogni