title: Angularjs ng-model not working input[text])
body: <p>I have a data from the database in a loop and this works great, and the value is in input field, but when i want read this value after click angular return me:</p>
  
  <blockquote>
    <p>Object {newName: undefined, newEmail: undefined}</p>
  </blockquote>
  
  <p>and i don't know why. Please for help.</p>
  
  <p>HTML CODE:</p>
  
  <pre><code>&lt;tr ng-repeat="user in users"&gt;
      &lt;td&gt;&lt;input type="text" ng-model="user.name" name="user.name" &gt;&lt;/td&gt;
      &lt;td&gt;&lt;input type="text" ng-model="user.email" name="user.email" &gt;&lt;/td&gt;
      &lt;td&gt;&lt;button ng-click="checkData()"&gt;Click&lt;/button&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>CONTROLLER CODE:</p>
  
  <pre><code> $scope.user = {};
   $scope.checkData = function () {
     var data = {
        newName: $scope.user.name,
        newEmail: $scope.user.email
     };
   console.log(data);
  </code></pre>