Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. //
  4. import YmapPlugin from 'vue-yandex-maps';
  5. //
  6. import listPlaceMarks from './pages/listPlaceMarks.vue';
  7. import mainPage from './pages/mainPage.vue';
  8. import registrationPlaceMarks from './pages/registrationPlaceMarks.vue';
  9. //
  10. Vue.use(YmapPlugin);
  11. Vue.use(VueRouter);
  12. //
  13. const routes = [
  14.     { path: '/listPlaceMarks', component: listPlaceMarks },
  15.     { path: '/mainPage', component: mainPage },
  16.     { path: '/registrationPlaceMarks', component: registrationPlaceMarks }
  17. ]
  18. //
  19. const router = new VueRouter({
  20.     routes
  21. });
  22. //
  23. new Vue({
  24.     //el: "#app",
  25.     router
  26. }).$mount('#app');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement