Created
July 23, 2016 07:19
-
-
Save montreal91/ad2b813ec4b16eb88d43de2f24ec28a4 to your computer and use it in GitHub Desktop.
hello world with dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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