lundi 9 septembre 2019

How to use buefy(vue.js component library) on laravel blade template

I am trying to use buefy to my project and i cant use the vue.js on laravel 5.8 please help

i have this on my app.js

require('./bootstrap');

window.Vue = require('vue');enter code here import Buefy from 'buefy'; Vue.use(Buefy);

here is my blade template @section('content')

@foreach ($permissions as $permission)
                                <div class="field">
                                    <b-checkbox v-model="permissionSelected" native-value=""> <em></em></b-checkbox>
                                </div>
                                @endforeach

@endsection

@section('scripts')

var app = new Vue({
        el: '#app',
        permissionSelected: ['create-users']
    });

@endsection

the checkbox of the buefy is not working.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire