title: Angularjs set value to text box on click of button
body: <p>I have following UI in my angularjs project<img src="https://i.stack.imgur.com/c2TY3.png" alt="enter image description here"></p>
  
  <p>on click of button in front of textbox i am calling one API whose code is</p>
  
  <pre><code>$scope.generateAppId = function(){
      var reqData = {};
      var res = $http.post('http://192.168.1.30:8090/apps/createappid', $scope.reqData);
      res.success(function(data, status, headers, config) {
          $scope.message = data;
          $scope.appId = data.appId
          console.log(data);
      });
  } 
  </code></pre>
  
  <p>This is the reponse data on successful API call</p>
  
  <pre><code>{
  id: null
  name: null
  appId: "c5b09133-eb40-4b90-b6de-5cfd054b2de9"
  secret: null
  domain: null
  }
  </code></pre>
  
  <p>Now i want to set value <strong>appId</strong> in JSON response to the textbox.</p>