如何获取按钮上的检查列表和选中的按钮栏值 - 单击“离子”

时间:2016-11-09 09:56:50

标签: angularjs ionic-framework

当我点击operator=时,如何使用离子和角度J获取所选列表值和所选按钮栏值

fModalHide(1);

$scope.fModalHide = function(index){

// I want to value of selected list and  selected button bar

}

1 个答案:

答案 0 :(得分:0)

您可以为选定列表和按钮创建一些$ scope params:

$scope.selectedList = 20;
$scope.selectedButton = 1;

然后在单击按钮或收音机时更新这些值。在函数fModalHide中,您可以获得以下值:

$scope.fModalHide = function(index){
 var selectedList =  $scope.selectedList;
 var selectedButton = $scope.selectedButton;
}