In my project using laravel elixir to mix up the JavaScript files.
In forms I have to use main Vue.js element to create forms. Also I have to use vue-google-map
template inside parent Vue.js element but it is showing an error?
window.VueGoogleMaps = require('vue2-google-maps');
var app = new Vue({
el: '#participantLocationListApp',
});
HTML:
<div class="panel panel-default card-view panel-refresh" id="participantLocationListApp">
<template>
<gmap-map:center="center" :zoom="1" style="width: 100%; height: 400px"> </gmap-map>
</template>
</div>
Error:
[Vue warn]: Unknown custom element:
<gmap-map>
- did you register the component correctly? For recursive components, make sure to provide the "name" option.[Vue warn]: Unknown custom element:
<gmap-info-window>
- did you register the component correctly? For recursive components, make sure to provide the "name" option.
window.VueGoogleMaps = require('vue2-google-maps'); var app = new Vue({ el: '#participantLocationListApp',})
HTML:<div class="panel panel-default card-view panel-refresh" id="participantLocationListApp"><template > <gmap-map:center="center" :zoom="1" style="width: 100%; height: 400px"> </gmap-map></template></div>
– Gobi R