Hello, I posted an angled application on an IIS server, and when I try to access the URL defined on the server I get the following error:
Error Displayed: "Can not match any routes. URL Segment: 'TestDrive'"
I do not know what to do, I searched the internet and saw something about routes. Here below I left the codes of my routes ..
Route Codes
import { Routes } from '@angular/router'
import { Personal, Dealers, Agendamento, Finalizados } from '../2 - WebSite/1 - Formulario';
import { BaseNumerica } from '../1 - Shared';
export const routes: Routes = [
{path: '', component: BaseNumerica, children:
[
{path: '', pathMatch: 'full', redirectTo: 'dados-pessoais'},
{path: 'dados-pessoais', component: Personal, },
{path: 'dealers', component: Dealers},
{path: 'agendamento', component: Agendamento}
]
},
{path: 'finalizado', component: Finalizados}
];
Calling routes in the module
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
HttpModule,
RouterModule.forRoot(routes),
NgxMaskModule.forRoot()
],
Thank you in advance ...
The first screen to be called is 'personal data' and does not need to define the URL, from the beginning
From there, I call the other URLs, this way
this.router.navigate (['dealers']);