Edit on
<body ng-app="myApp">

	<div ng-controller="MainController">
<h1>{{ message }}</h1>

		<input type="text" ng-model="name">
		<h3>Hello : {{ name }}</h3>
	</div>

</body>
function mainController($scope) {
  $scope.message = "Hello AngularJS";
  $scope.name = '';
};

angular.module('myApp', [])
  .controller('MainController', mainController);
Rerun