Edit in JSFiddle

// you don't even need any special JavaScript
// the whole app can live inside the HTML 
// provided you include the AngularJS 1.2.1 framework
<div ng-app>

    <div><input ng-model="hello_world" /> <span> {{ hello_world }} </span></div>
    
</div>
/* CSS is also optional */