当我点击operator=
时,如何使用离子和角度J获取所选列表值和所选按钮栏值
fModalHide(1);
$scope.fModalHide = function(index){
// I want to value of selected list and selected button bar
}
答案 0 :(得分:0)
您可以为选定列表和按钮创建一些$ scope params:
$scope.selectedList = 20;
$scope.selectedButton = 1;
然后在单击按钮或收音机时更新这些值。在函数fModalHide中,您可以获得以下值:
$scope.fModalHide = function(index){
var selectedList = $scope.selectedList;
var selectedButton = $scope.selectedButton;
}