Skip to content

Instantly share code, notes, and snippets.

@rolaveric
Created January 26, 2014 22:23
Show Gist options
  • Save rolaveric/8640249 to your computer and use it in GitHub Desktop.
Save rolaveric/8640249 to your computer and use it in GitHub Desktop.
Reasons to use AngularJS: Without Angular
<input type="text" id="messageInput"/>
<span id="messageOutput"></span>
<script type="text/javascript">
(function () {
var input = document.getElementById('messageInput');
var output = document.getElementById('messageOutput');
input.addEventListener('change', function () {
output.innerHTML = input.value;
});
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment