title: how to get radio input value using Ionic and AngularJS?
body: <p>i have a list of a few radio buttons and a input, and for some reason i can't get the selected radio value.</p>
  
  <p>here is my example, or <a href="http://jsfiddle.net/patrioticcow/556GL/17/" rel="nofollow">jsfiddle</a>. If you look in the console and submit the form you can see that even if you select a radio button the response is undefined, but the input value  comes in ok<div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var SampleApp;
  (function (SampleApp) {
  
      var app = angular.module('sampleApp', ['ionic']);
      app.controller('MainCtrl', function ($scope) {
          $scope.tests = [{
              "id": "1"
          }, {
              "id": "2"
          }, {
              "id": "3"
          }];
  
          $scope.addResource = function (settings) {
              console.log(settings);
          };
      });
  
  })(SampleApp || (SampleApp = {}));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="http://code.ionicframework.com/1.0.0-beta.6/css/ionic.css" rel="stylesheet"/&gt;
  &lt;script src="http://code.ionicframework.com/1.0.0-beta.6/js/ionic.bundle.js"&gt;&lt;/script&gt;
  
  &lt;div&gt;
      &lt;div ng-app="sampleApp" ng-controller="MainCtrl"&gt;
          &lt;ion-content style="display:block"&gt;
              &lt;form ng-submit="addResource(settings)"&gt;
                  &lt;div class="list list-inset" ng-repeat="test in tests"&gt;
                      &lt;ion-radio ng-model="settings.id" value="{{test.id}}"&gt;{{test.id}}&lt;/ion-radio&gt;
                  &lt;/div&gt;
                  &lt;br/&gt;
                  &lt;div class="list" style="margin: 5px 10px;"&gt;
                      &lt;label class="item item-input item-stacked-label"&gt; &lt;span class="input-label"&gt;Email&lt;/span&gt;
  
                          &lt;input type="text" ng-model="settings.email"&gt;
                      &lt;/label&gt;
                  &lt;/div&gt;
                  &lt;button class="button button-positive"&gt;Save&lt;/button&gt;
              &lt;/form&gt;
          &lt;/ion-content&gt;
      &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
   </p>