[Vuejs]-Why doesn't my search work when I use Vue.js?

0👍

It’s because you don’t send anything with vueJS. No data are sent with the ajax request. You need to do something like that.

this.$http.get('api/search', this.search , function(search){
        this.$set('searchResults', search);
    });

Leave a comment