I have a problem at the navigation with angluar navigation.
I have a route like the following
{
path: 'truckdetails/:lieferNr',
component: TruckDetailComponent,
data: { state: 'truckdetail' },
canActivate: [AuthguardService]
},
If I using the routing like this
this.router.navigate(['truckdetails', delivery.LIEFER_NR]);
if I am using the following term
this.router.navigate(['truckdetails', response.data]);
I get the error that he can't find the route. I think it worked before I update anglular to the new version. But know I get error
Error: Cannot match any routes. URL Segment: 'truckdetails;lieferNr=00179324'
The Response also containing the lieferNr
{timestamp: 1530014875302, status: 200, message: "QRCode Scanned", data: {…}}
data :{lieferNr: "00179324"}
message : "QRCode Scanned"
status : 200
timestamp : 1530014875302
response.dataan object{lieferNr: 00179324}? That won't resolve to the routetruckdetails/00179324; as you're seeing, it resolves to the routetruckdetails, which isn't specified, with optional parameters;lieferNr=00179324. You needresponse.data.lieferNr.