Edit in JSFiddle


              
            
          
            
              
                
<script src="//code.angularjs.org/1.5.0/angular.min.js"></script>

<div ng-app>
    <label>Name:</label>
      <input type="text" ng-model="yourName" placeholder="Enter a name here">
      <hr>
      <h1>Hello {{yourName}}!</h1>
  </div>