title: Angularjs initializing value in DOM
body: <p>Hi I have folllowing html input that takes value and calls  in controller function</p>
  
  <pre><code>  &lt;input type="text" name="netid" ng-model="c.netid"  ng-blur="blurCallback(c.netid)"/&gt;
    &lt;input type="text" name="name" ng-model="c.name" ng-init="c.name={{testing}}" /&gt;
  </code></pre>
  
  <p>Controller function</p>
  
  <pre><code>   $scope.blurCallback = function (netId) {
             var netName=netId;
                 AppRepository.checkPerson.get(netName, function (data) {
                     $scope.testing=data.name      
              })
          }
  </code></pre>
  
  <p>Code is working fine, except $scope.testing does not update the value in the DOM at ng-model=c.name. Please let me know how it is done right way in Angularjs. Thanks </p>