I follow this vue doc to create a custom component with a custom attribute like this:
Vue.component('y-form-checkbox', {
props: ['chkLabel'],
template: `<b-form-group label="label">
<b-form-checkbox>
{{ chkLabel }}
</b-form-checkbox>
</b-form-group>`
});
And then I use this component like following:
<y-form-checkbox chkLabel="Something special"></y-form-checkbox>
But the problem is that the chkLabel doesn't bind to the component's template as expected. I just got a checkbox without label. Why this happens? Thanks in advance!