Answer the question
In order to leave comments, you need to log in
How to display detailed information on a new page?
Good day. Tell.
I am practicing with public APIs like Rick And Morty Api, I have displayed the characters in the form of separate cards (all actions with api are in the store)
Now I thought about making a separate page for each character.
Such a question, how can I get data for a specific character id so that the corresponding information is displayed on a separate page?
Answer the question
In order to leave comments, you need to log in
Connect router. Highlight a separate route for detailed information. Make the route parameter id. Enable parameter forwarding in the route component. The component, using the received id, will retrieve information from the store (formalize this case as a computed property). That's how simple it is .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question