angular - How to import a function in external javascript file to a typescript component file in angular2 -
i using webpack in angular2 , trying create bulletchart using d3.js v4
trying import d3.bullet function "bullet.js (external js file") bulletchart.component.ts file.
here's referring link: https://bl.ocks.org/mbostock/4061961
error:
webpack_module: d3._bullet() not found
should use npm install --save d3-bullet , import bulletchart.component.ts not reading function.
Comments
Post a Comment