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