<!DOCTYPE html>
<html>
  <head>
    <script src="http://code.angularjs.org/1.2.0-rc.3/angular.js"></script>
    <script>
      function GreetingController($scope) {
        $scope.name = 'Controlled World'; 
      }
    </script>
  </head>
  <body ng-app>
    <div ng-controller="GreetingController">
      <input ng-model="name" type="text" placeholder="Enter your name" />
      <p>Hello, {{name}}!</p>  
    </div>
  </body>
</html>