lundi 25 juin 2018

vuejs vue-router Cannot read property 'push' of undefined

Hi guys I am using vuejs and laravel to redirect url, unfortunately I keep on getting the error 'Cannot read property 'push' of undefined'.

Here is the code:

edit(animal){

   this.$route.router.push({path: '/api/animals/' + animal.id + '/edit'})

    },



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2K8xH2n
via IFTTT

Aucun commentaire:

Enregistrer un commentaire