Edit in JSFiddle

<div ng-app>
<input type="text" ng-model="name"></input>
<h2>Hello, {{name}}!</h2>
</div>