[Vuejs]-Update dashboard on element click in Vue.js

0👍

You can do that by throwing an event from the child component i.e the table to the parent component that is the dashboard.

Then the dashboard will register that event and make an API call and change the props passed to all the components like graph etc.

You can learn more about events from child component to parent component over here:- https://v2.vuejs.org/v2/guide/components-custom-events.html

0👍

No need to use routes or any other method in my opinion. You can use table on cell click method (which will have the cell params) and call your api’s inside the method. It won’t be an issue. Do revert back in case of problems

Leave a comment