title: Get selected option in dynamic Angular dropdown
body: <p>I want have a simple select:</p>
  
  <pre><code>&lt;ion-view view-title="fc" id="fcs"&gt;
    &lt;ion-content&gt;
  
      &lt;div id="params-container"&gt;
  
          &lt;select ng-model="value1" ng-options="value for value in params1 track by value" ng-change="update()"&gt;&lt;/select&gt;
  
      &lt;/div&gt;
    &lt;/ion-content&gt;
  &lt;/ion-view&gt;
  </code></pre>
  
  <p>And in the controller:</p>
  
  <pre><code>angular.module('filedetails.controller', [])
  
  
  .controller('FileDetailsCtrl', function($scope, $stateParams, FilesService, ProcessFileService, FCSModel) {
  
         $scope.params1 = ["FSC-A", "FSC-H", "FSC-W", "SSC-A"];
  
         $scope.update = function(){
              console.log('scope.axisX is');
              console.log($scope.axisX);
          }
  
  });
  </code></pre>
  
  <p>And in app.js I have:</p>
  
  <pre><code>.state('file-detail', {
    url: '/files/:id',
    templateUrl: 'js/files/details/template.html',
    controller: 'FileDetailsCtrl'
  })
  </code></pre>
  
  <p>I want to get the selected value but somehow when i select a value in the dropdown, it always outputs <code>undefined</code>. What can I be doing wrong? Im using AngularJS v1.3.13.</p>