Edit in JSFiddle

<div ng-app> <!-- Let Angular know where the "app" resides -->
    <input type="text" placeholder="Type something..."
        ng-model="myData" ></input> <!-- Specify the model data "myData" -->
    <h1>{{myData}}</h1> <!-- Output the model data -->
</div>