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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -