I want have a simple select:
<ion-view view-title="fc" id="fcs">
  <ion-content>
    <div id="params-container">
        <select ng-model="value1" ng-options="value for value in params1 track by value" ng-change="update()"></select>
    </div>
  </ion-content>
</ion-view>
And in the controller:
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);
        }
});
And in app.js I have:
.state('file-detail', {
  url: '/files/:id',
  templateUrl: 'js/files/details/template.html',
  controller: 'FileDetailsCtrl'
})
I want to get the selected value but somehow when i select a value in the dropdown, it always outputs undefined. What can I be doing wrong? Im using AngularJS v1.3.13.
 
     
    