loadjs 0.0.4
loadjs: ^0.0.4 copied to clipboard
Load your javascript libs dynamically.
LoadJS #
This is just a simple function that let you dynamically load javascript libraries in your Dart code. It's based on package:js.
Here is a simple example :
void main(){
loadJS([
"http://code.jquery.com/jquery-latest.js"
]).then((jsc){
var $ = jsc.$;
$("body").append("<h1>Hello World !</h1>");
});
}