Skip to content

Using route.params in the find method #1157

Answered by CodeDredd
Jens-dev asked this question in Q&A
Discussion options

You must be logged in to vote

If you use @sergerdn debugging solution i think you will see that your are passing a string with route.params.id instead of a number which your ids seems to be. So all you need to do is parseInt(route.params.id)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@sergerdn
Comment options

@sergerdn
Comment options

@sergerdn
Comment options

@Jens-dev
Comment options

@Jens-dev
Comment options

Answer selected by Jens-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants