app.js 640 B

123456789101112131415161718192021222324
  1. /**
  2. * First we will load all of this project's JavaScript dependencies which
  3. * include Vue and Vue Resource. This gives a great starting point for
  4. * building robust, powerful web applications using Vue and Laravel.
  5. */
  6. require('./bootstrap');
  7. /**
  8. * Next, we will create a fresh Vue application instance and attach it to
  9. * the body of the page. From here, you may begin adding components to
  10. * the application, or feel free to tweak this setup for your needs.
  11. */
  12. Vue.component('example', require('./components/Example.vue'));
  13. var app = new Vue({
  14. el: 'body',
  15. ready() {
  16. console.log('Application ready.');
  17. }
  18. });