<body ng-app> <div ng-controller="myCtrl"> <input ng-model="abc" type="text"> <h1>{{abc}}</h1> <input ng-model="bind" type="text"> <h1>{{bind}}</h1> </div> <script> function myCtrl($scope) { $scope.abc = ''; $scope.bind = ''; } </script> </body>
<body ng-app> <div ng-controller="myCtrl"> <input ng-model="abc" type="text"> <h1>{{abc}}</h1> <input ng-model="bind" type="text"> <h1>{{bind}}</h1> </div> <script> function myCtrl($scope) { $scope.abc = ''; $scope.bind = ''; } </script> </body>