3 ms·
Don't know much about Dart. Is there a way for Dart code to call/use Javascript libraries? Like could I use D3 in Dart?
by TheMagicHorsey 13y ago
Don't know much about Dart. Is there a way for Dart code to call/use Javascript libraries? Like could I use D3 in Dart?
- _ak 13y agoThere's a library to call JavaScript code from Dart, both in the VM and when the Dart code is compiled to JS: https://www.dartlang.org/articles/js-dart-interop/ https://www.dartlang.org/articles/js-dart-interop/
- spankalee 13y agoYep, we use d3.js on Dart projects internally. Check out the dart:js library, which is pretty new, and the article that _ak linked (which needs some updating). http://api.dartlang.org/docs/releases/latest/dart_js.html http://api.dartlang.org/docs/releases/latest/dart_js.html