[Vuejs]-Vue JS and Laravel

0👍

Change

        this.$http.get('/api/data', function (data) {
            this.$set('dv', data)
        })

To

        this.$http.get('/api/data', data => this.$set('dv', data))

this is the first snippet is not bind to the component instance so it will not work.

Information about how this works in JS is here.

Leave a comment