Edit in JSFiddle

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