当我按下" enviar"时,我无法获得所选的值。按键 这是我的代码 我做了一个编辑 ths片段工作但不是这段代码 console.log始终显示" sugerencias"
HTML
<ion-content class="has-header has-subheader">
<button ng-click="im(seleccionado)">sdaodisa</button>
<form>
<div>
<label class="item item-select">
<span class="input-label">Asunto</span>
<select ng-model="seleccionado" ng-options="item for item in arrayj"></select>
</label>
</div>
</form>
</ion-content>
JS
var app = angular.module('starter');
app.controller('controladorSugerencias', function ($scope) {
$scope.arrayj = ['sugerencias', 'reclamos'];
$scope.seleccionado = $scope.arrayj[0];
$scope.im = function () {
console.log($scope.seleccionado)
};
});