install vue router
npm install vue-router
install vue router
npm install vue-router
installing vue router & implementation
//Installing Vue Router
npm install vue-router
//Implementation
//main.js - Add below lines
import VueRouter from 'vue-router';
Vue.use(VueRouter);
const router = new VueRouter({
routes,
mode: 'history'
});
new Vue({
router,
render: h => h(App)
}).$mount('#app')
//App.vue - Add below line in v-content
/*
<template>
<v-app>
<v-content>
<router-view></router-view>
</v-content>
</v-app>
</template>
*/
//route.js - We need to craate file under src
import linkName from './components/fileName.vue';
export const routes = [
{
path: '/',
component: linkName
}
]
how to install vue router
npm install --save vue-router@next
# Install the latest version
jquery get value of radio input
$('input[name="name_of_your_radiobutton"]:checked').val();
get value of checked radio button jquery
$('form input[type=radio]:checked').val();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us