File for Router Configuration
import DomainAction from './components/domainaction/DomainAction.vue'
...
{ path: '/domainaction' , component: DomainAction },
...
Linking to Routes using Router Links
...
<router-link to="/domainaction" tag="li" class="list-group-item "class-active="active" exact > Domain Action</router-link>
...
Navigating to the domainaction Route from Other Routes
...
itemAction(action,data){
if(action=='Suspend'){
this.$router.push('/domainaction')
}
}
...
The Structure of My DomainAction Component
<template>
.......
</template>
<script>
export default {
props:['data'],
data(){
return{
.........
</script>
I would like to pass data through the props in the itemAction function. Can someone please guide me on how to accomplish this? I am still learning Vue.js and may not have provided all the necessary details. Your help is much appreciated.