[Vuejs]-Using .vue compoent in vue component

0👍

Your Dashboard.vue should look like:

<template>
<div class="form-group row">
    <label class="col-sm-3 col-form-label">PIC</label>
    <autocomplete :suggestions="cities" :selection.sync="form.pic_name"></autocomplete>
</div>
</template>

<script>
export default {
   name: 'vue-dashboard'
   ...
}
</script>

<style>
...
</style>

You can find doc here.

Leave a comment