I tried to use VueJS inline template component inside Laravel 5.7 but facing this error
[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option
This is my sample code on show.blade.php
@extends('layouts.app')
@section('content')
<div class="content">
<progress-view inline-template>
<h1>Test Inline Template Component</h1>
</progress-view>
</div>
@endsection
@section('js_after')
<script>
Vue.component('progress-view', {
data() {
return {};
},
});
</script>
@endsection
Default Laravel VueJS instance on app.js
const app = new Vue({
el: '#app'
});
How can I solve this problem? Do I need to register the component inside Laravel app.js? If yes, what is the syntax that I need?
Thanks