Skip to content

Commit

Permalink
Import the components using import
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 15, 2017
1 parent 7eaa190 commit c81ba02
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions Modules/Page/Assets/js/PageRoutes.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
window.Vue = require('vue');
import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
import DataTables from 'vue-data-tables'
import 'element-ui/lib/theme-default/index.css'
import locale from 'element-ui/lib/locale/lang/en'
import PageTable from './components/PageTable.vue'
import PageForm from './components/PageForm.vue'

Vue.use(ElementUI, { locale });
Vue.use(DataTables, { locale });
Vue.use(VueRouter);

const PageTable = require('./components/PageTable.vue');
Vue.component('PageTable', PageTable);

const PageForm = require('./components/PageForm.vue');
Vue.component('PageForm', PageForm);


let translations = window.translations;
let locales = window.locales;
const translations = window.translations;
const locales = window.locales;

export default [
{
Expand Down

0 comments on commit c81ba02

Please sign in to comment.