I am encountering an error in VueJS that says
app.js:11754Uncaught TypeError: (intermediate value)(intermediate value).bind is not a function
. I want to trigger the isLoaded function inside fullPage. I have tried using 'this' binding but it's not working. Where should I place the bind(this) to make it work?
one_page: function () {
$('#dosbcn').fullpage({
anchors: ['firstPage', 'secondPage', 'thirdPage', 'fourthPage', 'lastPage'],
afterLoad: function(anchorLink, index){
//using index
if(index == 2){
console.log('second page here');
this.isLoaded(); // Vue function to be called if the index is equal to 2.
}
}
});
},
isLoaded: function () {
console.log('hello world');
}