I am evaluating angular 2.0 beta (with typescript) and tried to include some libraries via the module system. But somehow this does not work for c3.js / nv.d3.js.
Can anyone bump me into the right direction on how to c3.js / nv.d3.js to work?
- tsconfig.json has
"module": "system"(recommended by Angular 2.0) - tsconfig.json has
"allowSyntheticDefaultImports": true(allows synthetic default import of d3.js) import d3 from 'd3'worksimport c3 from 'c3'does not workimport nv from 'nvd3'does not work- The
c3.jssite says import viaAMDandrequire.jsis possible. - The
system.jssite says it can importAMDmodules as well
I am no JS pro, but there is no export statement in c3.js / nv.d3.js file, also there is no typescript definition in tsd. I'd create one and share it, but am not familiar enough with the concepts needed.