[Vuejs]-Communication between components with Vue and routes

0๐Ÿ‘

โœ…

I recommend use params in vue-router.

Sample: https://codesandbox.io/s/zrk6r0o4ml.

In sample used named path (docs: https://router.vuejs.org/essentials/named-routes.html) and params path (docs: https://router.vuejs.org/essentials/passing-props.html).

Also, i use v-for for display array of data (file StudentList.vue, docs: https://v2.vuejs.org/v2/guide/list.html#Mapping-an-Array-to-Elements-with-v-for).

Good luck.

Leave a comment