Please note: I am not interested in using Polymer for this; I want to use \"pure\" Dart!
I am trying to build a simple sign-in screen for my Dart ap
here is an example how to do this
Forms, HTTP servers, and Polymer with Dart
When you change
void main() {
querySelector("#signinBtn")
..onClick.listen(handle);
}
to
void main() {
querySelector("form")
.onSubmit.listen(handle);
}
you have access to target
void handle(Event event) {
event.preventDefault();
FormElement form = event.target as FormElement;
...
}