Open anoopsinghbayes opened 7 years ago
the #43 is not working for me :(
Ok, this is the thing.
If you guys copied ng2-nvd3 and pasted it into your src folder put the imports of d3 and nvd3 there.
What happens is that the module system is "smart", that means if I import something I'm not using the import will not be effectively done.
So what happens is that nvd3 cannot be registered cause d3 was never used ergo imported.
Another solution is to:
console.log(d3.version); and something defined in nvd3 to trick the system and make the imports really happen.
Ionic 2 has a different way of adding external dependency,as it uses ionic-cli. ionic-faq
i have added import statements on the page as follows import as d3 from 'd3'; import as nvd3 from 'nvd3'; import { nvD3 } from 'ng2-nvd3';
Am i missing some thing?