标签: angularjs ionic-framework
如何使用Ionic中的按钮交换文本框1和文本框2中的文本
答案 0 :(得分:0)
//add two ng-models for both textboxes //Assign the values to variables var txt1 = $scope.textbox1 ; var txt2 = $scope.textbox2; //swap the values $scope.textbox1 = txt2; $scope.textbox2 = txt2;