-
-
Save artalar/2b3ff6c83f6d6447ce071ca6beb52718 to your computer and use it in GitHub Desktop.
input
This file contains hidden or 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
<div id='root'> | |
</div> |
This file contains hidden or 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' as html; | |
void main() { | |
var input = html.document.createElement('input'); | |
var output = html.document.createElement('p'); | |
html.querySelector('#root').append(input); | |
html.querySelector('#root').append(html.document.createElement('br')); | |
html.querySelector('#root').append(output); | |
input.onInput.listen( | |
(e) => output.innerText = ((e.currentTarget as html.InputElement).value)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment