Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
pusher channel.bind cant access data outside

hi i have vuejs2 with pusher and this is my code inside my created methods

console.log(this.orders) // this working good outside channel.bind
var pusher = new Pusher('my pusher key', {
    cluster: 'ap2'
});
var channel = pusher.subscribe('my-channel');
channel.bind('my-event', function(data)
{
    console.log('anything here') // this working good
    console.log(this.orders) // i gat here undefinded
});

now ive tried to change watchers or fire any function in my code i always gat undefinded inside

channel.bind

how can i fix this .. thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!