-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected Number, got String. #1704
Comments
When you pass a prop without If you want to pass a literal number, you need use <!-- this passes "5" -->
<calc additions="5"></calc>
<!-- this passes 5 -->
<calc :additions="5"></calc> |
Thanks for the quick response! :) This would be great info to add to the http://vuejs.org/guide/components.html#Prop_Validation section of the guide. :) |
I've got the same problem but I'm actually using
|
Hey @RaschidGithub, this is a very old issue. you should ask in the forum or the Discord server, but you will need to share some code or nobody will be able to help you 🙂 |
This works for me.thx |
but can i do when i use $router.push ? |
The way you are passing your params is a little bit different from the presented in documentation https://router.vuejs.org/guide/essentials/named-routes.html It would be:
|
Page Not Found??? 404 |
The following causes an error (running Vue 1.0.4):
Is this something with the way I am passing properties, or is this a bug in the property-type auto-conversion (similar to past issues on the same topic)?
(The above is a simplified example.)
The text was updated successfully, but these errors were encountered: