[Vuejs]-Loading binary file on VUEJS with jBinary

0👍

The error is saying that it’s not able to read the parsePeturboDATFiles property because the this variable is evaluating to undefined. Store a reference to this in another variable self and then use that to call parsePeturboDATFiles():

mounted : function () {
  var self = this;
  jbinary.load('./static/test.dat').then(function (data) {
    self.parsePeturboDATFiles(data.view);
  })
}

Leave a comment