<script type="text/javascript" src="angular.min.js"></script>
<script>
var app = angular.module("simpleApp",[]);
app.controller("simpleController",function($scope){
$scope.name="Rajesh Kumar mandal"; //angularjs Variable -- name
$scope.displayData = function(){
$scope.getdata;
}
});
</script>
<body>
<div ng-app="simpleApp" ng-controller="simpleController">
<h1>{ {name} }</h1>
<input type="text" ng-change="displayData()" ng-model="getdata">
<h1>{ {getdata} } </h1>
</div>
</body>