Skip to content

Instantly share code, notes, and snippets.

@montreal91
Created July 23, 2016 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save montreal91/ad2b813ec4b16eb88d43de2f24ec28a4 to your computer and use it in GitHub Desktop.
Save montreal91/ad2b813ec4b16eb88d43de2f24ec28a4 to your computer and use it in GitHub Desktop.
hello world with dart
import 'dart:html';
add_my_div() {
DivElement div = querySelector("#dumb-id");
div.text = "This is my div!";
DivElement div2 = new DivElement();
div2.text = "<b>This is my inner div!</b>";
div.children.add(div2);
}
main() {
print("Hello World");
add_my_div();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment