Created
July 4, 2016 18:38
-
-
Save simpleprogrammer-shared/0a45c3b43c83e9220430b73ce008592c to your computer and use it in GitHub Desktop.
Getting Started With Google’s Dart Language 2
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'; | |
void main() { | |
var button = query("#theButton"); | |
button.onClick.listen(addResult); | |
} | |
void addResult(Event e) { | |
var resultDiv = query("#resultDiv"); | |
resultDiv.text = "You clicked the button"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment