title: how to save textbox values in scope variable angularjs
body: <p>i want store textbox value in my Values variable but its not save i don't know why anyone help me please??? i am new in angularjs  that's why i am here please help me   i want store values from textbox, i enter my textbox ff fff see below image, but i check my console file its show 'Site name' i think its get from my hard coded value but i want data from textbox </p>
  
  <pre><code>     $scope.form =  {
          site_name: 'Site name',
          street_address: 'Street address',
          city: 'City',
          state: 'state',
          country: 'country',
          zip_code: 'zip_code',
          phone_number: 'phone_number'
  
        };   
         $scope.addRow = function() {
          $scope.i++;
          $scope.array = [];
          for(var i = 0; i &lt; $scope.i; i++) {
              $scope.array.push(i);
          }
      }  
          var checkprofile = $scope.Profile.id;
           $(".alert").hide();    
            $scope.updateProfile = function () {   
  
                 console.log( 'updateProfile');
               console.log( $scope.form);   
   $scope.Profile.addresses.push($scope.form);
              $scope.tempObject={full_name:$scope.Profile.full_name,
                mobile_number:$scope.Profile.mobile_number,
               company_name:$scope.Profile.company_name,
               designation: $scope.Profile.designation,    
              addresses: $scope.Profile.addresses,
  
              payment_info: $scope.Profile.payment_info
  
             };  
  
             $http.put(properties.customerupdate_path + "/"+checkprofile,$scope.tempObject).success(function (response) { 
             // window.location.href = '/customerprofile';
                  });
              }    
  </code></pre>
  
  <p>i click button after enter values 'ff' 'ff' 'ff' in my textboxes ...below code does not get data from textbox its get my above values i don't know why</p>
  
  <pre><code>  $scope.updateProfile = function () {    
             console.log( 'updateProfile');
           console.log( $scope.Values );   
  </code></pre>
  
  <blockquote>
    <p>//result  --> [Object { site_name="Site name",  street_address="Street
    address",  city="City",  more...}]</p>
  </blockquote>
  
  <pre><code>}
  </code></pre>
  
  <p>HTML//</p>
  
  <pre><code> &lt;tr ng-repeat="lines in array"&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='Values.site_name ' name='site_name'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='Values.street_address ' name='street_address'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='Values.city ' name='city'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='Values.state ' name='state'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='Values.country ' name='country'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='Values.zip_code ' name='zip_code'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" class="form-control" id="inputDefault"  ng-model='Values.phone_number ' name='phone_number'&gt;&lt;/td&gt;                                        
  &lt;/tr&gt;
  </code></pre>
  
  <p>Update Profile</p>
  
  <p><a href="https://i.stack.imgur.com/45jMp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/45jMp.jpg" alt="enter image description here"></a>                                     </p>