Added vuex as a store and an event bus.

This commit is contained in:
krzysiej
2022-06-13 15:17:02 +02:00
parent 5c154b740c
commit 8dbd63478d
8 changed files with 118 additions and 21 deletions

View File

@@ -2,9 +2,10 @@ import Vue from 'vue';
import Book from './pages/book'
import BookListing from './pages/booklisting'
import BookListingHeader from './pages/booklistingheader'
import store from "./store/index";
Vue.component('Book', Book);
Vue.component('BookListing', BookListing);
Vue.component('BookListingHeader', BookListingHeader);
new Vue().$mount('#app');
new Vue({store}).$mount('#app');