title: Unable to change variable value attached to scope in angular js?
body: <p>value of $scope.user.name should be changed to 'please enter name' , i should get 'please enter name' when click on reset button.</p>
  
  <pre><code>$scope.user = {};
  $scope.reset =function(dta){
         $scope.dta = 'please enter name';
       }
  
         &lt;input type ="text" ng-model="user.name"&gt;
  
         &lt;button ng-click="reset('user.name')"&gt;Reset&lt;/button&gt;
  </code></pre>