New to Vue.js, cannot get form group label to show in component. Am trying to create a component to save myself some time as will need to use this a lot of times.
Thanks
<ZComplianceField :mylabel="foo" :property="user.applicationForm.rating" :isEditing="isEditing"></ZComplianceField>
<template>
<b-form-group
label-cols="4"
label-cols-lg="2"
label-size="sm"
>
<template slot="label">{{ mylabel }}</template>
<b-form-input
size="sm"
type="text"
v-model="property"
:disabled="!isEditing"
:class="{view: !isEditing}"
></b-form-input>
</b-form-group>
</template>
<script>
export default {
name: "ZComplianceField",
props: {
mylabel: {
required: true
},
property: {
required: true
},
isEditing: {
required: true
}
}
};
</script>
'''