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'})

    },



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire