import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from './routes'
Vue.use(VueRouter)
new Vue({
el: '#app',
render: h => h(App),
router
})
import VueRouter from 'vue-router'
import Home from './pages/Home.vue'
import Cars from './pages/Cars.vue'
import About from './pages/About.vue'
export default new VueRouter({
routes: [
{
path: '',
component: Home
},
{
path: '/cars',
component: Cars
},
{
path: '/about',
component: About
}
],
mode: 'history'
})
<template>
<div class="container">
<router-link to="/">Home </router-link> |
<router-link to="/about">About</router-link>|
<router-link to="/cars">Cars</router-link>
<router-view>
</router-view>
</div>
</template>
<script>
export default {
}
</script>
<template>
<h1>Cars page</h1>
</template>
<script>
export default {
}
</script>
<style scoped>
</style>
D:\Open Server\OSPanel\modules\php\ext
extension_dir="C:\full\path\to\php\ext"
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
// \Illuminate\Session\Middleware\StartSession::class,
// \Illuminate\View\Middleware\ShareErrorsFromSession::class
//\App\Http\Middleware\Mymiddleware::class
];
<!--<script src="/catalog/view/javascript/wow.js"></script>-->
<script src="/catalog/view/javascript/wow.js"></script>
<script type="text/javascript">
var wow = new WOW();
/*если сессия split = wow то init скрипт, если другое знач, то не init*/
<?php if ($_SESSION["split"] == "wow") { ?>wow.init();<?php } ?>
</script>
new WOW().init();