Closed aviralgoyal closed 3 years ago
I believe block(d) { ... }
is just a shorthand for block: function(d) { ... }
, which would not lexically bind this
. I think if you replaced your event with an arrow function, such as block: (d) => { ... }
, your code would be able to resolve this
as you intend.
Thank you @jakezatecky it worked.
As per the latest document in D3 JS funnel I have click event callback as referred by the documentation. But when I'm unable to access functions from inside angular component using this.try().
Here is the implementation, don't know how to implement it.
JS Code
HTML
It gives the error
I don't know how to resolve this.