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

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -