[Vuejs]-Function only gets called once in NuxtJs

0๐Ÿ‘

โœ…

My Typo,

I removed the brackets for my categories array and it worked:

feedsByCategories: function(categories) {
        console.log(categories);
        axios.post(process.env.apiURL + "feeds/feedsByCategories", {
          categories: categories
        }).then((res) => {
            console.log(res);
          })
      }

Leave a comment