Added vuex as a store and an event bus.
This commit is contained in:
@@ -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');
|
||||
Reference in New Issue
Block a user