angular-highcharts icon indicating copy to clipboard operation
angular-highcharts copied to clipboard

Wrong reference to ref, should be using ref$

Open thiagosbrito opened this issue 4 years ago • 2 comments

I'm getting the error:

core.js:6237 ERROR TypeError: Object(...) is not a function
    at StockChart.init (angular-highcharts.js:240)
    at ChartDirective.init (angular-highcharts.js:322)
    at ChartDirective.ngOnInit (angular-highcharts.js:308)
    at callHook (core.js:4735)
    at callHooks (core.js:4699)
    at executeInitAndCheckHooks (core.js:4639)
    at refreshView (core.js:11963)
    at refreshComponent (core.js:13410)
    at refreshChildComponents (core.js:11666)
    at refreshView (core.js:11997)

Screenshot 2020-05-08 at 18 54 56

As you can see the angular-highcharts lib is evaluating !this.ref although this is no longer existent since the reference now is updated and using ref$

thiagosbrito avatar May 08 '20 16:05 thiagosbrito

this.ref is a private variable and should be available to the library.

Is this a compile or runtime error?

cebor avatar May 12 '20 16:05 cebor

@thiagosbrito i just released a missing bugfix for stockcharts and mapcharts, maybe this helps

cebor avatar May 12 '20 16:05 cebor