@@ -13,6 +13,8 @@ require('./bootstrap');
* the application, or feel free to tweak this setup for your needs.
*/
+Vue.component('example', require('./components/Example.vue'));
+
var app = new Vue({
el: 'body'
});
@@ -0,0 +1,23 @@
+<template>
+ <div class="container">
+ <div class="row">
+ <div class="col-md-10 col-md-offset-1">
+ <div class="panel panel-default">
+ <div class="panel-heading">Example Component</div>
+ <div class="panel-body">
+ I'm an example component!
+ </div>
+</template>
+<script>
+ export default {
+ ready() {
+ console.log('Component ready.')
+ }
+</script>