I get my ‘country’ variable in my ‘list’ page very well, except that when I restart a query with another value in my variable.
When I get my variable in the ‘list’ page, like that :
This.stateUrl always returns me the value of my first variable …
What approaches are possible?
Reload my function? How?
Another way to get my variable?
Thanks !
Edit :
To put in context, I have a search bar, the user writes for example: “Paris”, then validates his search, he finds himself on the page ‘list’ with the name of several restaurants in Paris. If the user now returns to search and writes: “fksgrfs”, and validates, he will still have the results for Paris since the variable this.country does not update
As I know it is necessary there. In case you don’t pass and get the value without JSON Object. you will the get the array or whatever you pass like this:
and in case you pass and get the value with JSON Object, you will the get the array or whatever you pass like this:
Thanks, that’s interesting. So in your experience there would seem to be a difference between deeply-nested objects and, for example, a { [k: string]: string } or a number[].