Commit 9659e8db authored by Taylor Otwell's avatar Taylor Otwell

Example component.

parent e2b297b9
This diff is collapsed.
...@@ -13,6 +13,8 @@ require('./bootstrap'); ...@@ -13,6 +13,8 @@ require('./bootstrap');
* the application, or feel free to tweak this setup for your needs. * the application, or feel free to tweak this setup for your needs.
*/ */
Vue.component('example', require('./components/Example.vue'));
var app = new Vue({ var app = new Vue({
el: 'body' el: 'body'
}); });
<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>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
ready() {
console.log('Component ready.')
}
}
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment