Get selected option in dynamic Angular dropdown

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.

You need to do it like this:

<select ng-model="axisX" ng-options="value as value for value in params1" ng-change="update()"></select>

or like this:

<select ng-model="axisX" ng-options="value for value in params1 track by value" ng-change="update()"></select>

With first approach you will get:

<option value="0">FSC-A</option>
<option value="1">FSC-H</option>

With second approach you will get:

 <option value="FSC-A">FSC-A</option>
    <option value="FSC-H">FSC-H</option>

Here is the working plunker

I assume your setup is wrong. Your code works on jsfiddle, at least as soon as I add the ng-controller tag: https://jsfiddle.net/wg5dtb8o/

<div ng-controller="MyCtrl">
<select ng-options="value for value in params1" ng-model="axisX" ng-change="update()"></select>
</div>