score:1

Accepted answer

You can use IIFE function to store a component reference:

tooltip: {
  formatter: (function(component) {
    return function() {
      console.log(component, this);
    }
  })(this)
}

Live demo: http://jsfiddle.net/BlackLabel/6m4e8x0y/4808/


Related Query

More Query from same tag