Rewording my previous question, I have this route which gives me something like this /order-screen/store/1/London
{
path: 'order-screen/store/:storeId/:storeLocation',
component: OrderComponent
}
When I try to get the storeLocation using this.route.params it returns an error of NaN. I want to get the location London, not sure if .params is the right one to use.
this.routeSub = this.route.params.subscribe(params => {
this.storeLocation = +params['storeLocation'];
console.log('Location >> ', this.storeLocation);
})