"TypeError: Cannot read property 'push' of undefined"


#1

Hello everybody, i am newly with laravel & vuejs I am trying to send value form one component to anther but i am getting an error “TypeError: Cannot read property ‘push’ of undefined”.

this is the first component ‘login’

My second component ‘chat’


#2

The code provided is currently not properly formatted for this forum. In it’s current state, it’s hardly readable and makes it hard for people to help you.

Please read the following guide about how to properly format code, and then edit your topic accordingly.

Thanks!


#3

There is no push method as part of Vue Resource (I assume you’re using this as you haven’t explained otherwise). https://github.com/pagekit/vue-resource/blob/develop/docs/http.md#methods