title: How to know if my radio button is checked? AngularJS
body: <p>guys I did a code for knowing if my checkbox is checked and works fine:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div ng-app&gt;
      &lt;div ng-controller="UserController"&gt;
          &lt;table id="tblUsers" class="Table"&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th&gt;&lt;/th&gt;
                      &lt;th&gt;Name&lt;/th&gt;
                      &lt;th&gt;Last Name&lt;/th&gt;
                      &lt;th&gt;Phone&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;tr ng-repeat="user in users"&gt;
  
                      &lt;td&gt;&lt;input type="checkbox" ng-model="user.checked"/&gt;&lt;/td&gt;
                      &lt;td&gt;{{user.name}}&lt;/td&gt;
                      &lt;td&gt;{{user.lastName}}&lt;/td&gt;
                      &lt;td&gt;{{user.phone}}&lt;/td&gt;
                  &lt;/tr&gt;
          &lt;/table&gt;
  
       &lt;/div&gt;   
  &lt;/div&gt;
  </code></pre>
  
  <p>This is the Angularjs code:</p>
  
  <pre><code>function UserController($scope) {
      $scope.users = [
          { checked: false, name: 'Jorge', lastName: 'Martinez', phone: 012345 },
          { checked: false, name: 'Juan', lastName: 'Perez', phone: 78964 }
      ];
  
      $scope.updateUser = function () {
          angular.forEach($scope.users, function (user) {
              if (user.checked) {
                  user.name = $scope.nameUpdate;
                  user.lastName = $scope.lastNameUpdate;
                  user.phone = $scope.phoneUpdate;
              }
          });
      };
  }
  </code></pre>
  
  <p>The problem is when I change the checkbox for a radio button:</p>
  
  <pre><code>&lt;td&gt;&lt;input type="radio" ng-model="user.checked"/&gt;&lt;/td&gt;
  </code></pre>
  
  <p>When I do this, this value "if(user.checked)"  appears as "undefined".
  Some one that knows how to fix this or how to know if the radio button is checked or not in the AngularJS controller. </p>