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