In the vue router you can set up path parameters that are bound into the rendered component. For instance you might have a route like this:
This will bind the parameters
favorite on the component. However when you drop into that component and look at the values passed in you will see that they are strings. Of course that makes sense, the router doesn't really know if the things you pass in are strings or something else. Consider the route
/reports/17/awesome report/false. Here
favorite are going to be strings.
You can work around that by giving props in the router a function rather than just a boolean.