Angularjs 当我选择了选项时,我会关闭
我来早了 我创建了一个弹出窗口,它的工作。但我遇到了一些问题,我想当我做出选择后(使用输入收音机),弹出窗口将关闭并更改a类标签 这是弹出窗口的my code app.js:Angularjs 当我选择了选项时,我会关闭,angularjs,popup,ionic-framework,ionic,Angularjs,Popup,Ionic Framework,Ionic,我来早了 我创建了一个弹出窗口,它的工作。但我遇到了一些问题,我想当我做出选择后(使用输入收音机),弹出窗口将关闭并更改a类标签 这是弹出窗口的my code app.js: .controller('PlaylistsCtrl',function($scope, $ionicPopup, $timeout) { // Triggered on a button click, or some other target $scope.showPopup = function() { $sc
.controller('PlaylistsCtrl',function($scope, $ionicPopup, $timeout) {
// Triggered on a button click, or some other target
$scope.showPopup = function() {
$scope.data = {}
// An elaborate, custom popup
var myPopup = $ionicPopup.show({
templateUrl: 'templates/Popuptes.html',
scope: $scope,
});
myPopup.then(function(res) {
console.log('Tapped!', res);
});
$timeout(function() {
myPopup.close(); //close the popup after 10 seconds for some reason
}, 6000);
};
});
这是my Popuptes.html:
<div id="popup">
<input type="text">
<br>
<input type="radio" name="tags" value="food" ng-model="data.tags">Food
<br>
<input type="radio" name="tags" value="drink" ng-model="data.tags">Drink
<br>
<a href="#">Show all..</a>
</div>
食物
喝
有人能帮我吗?
提前感谢,问候:)您可以使用“myPopup.close();”用于在做出选择后关闭弹出窗口。(即在JQuery中侦听radio select事件),然后继续更改类
确保移除自动关闭
$timeout(function() {
myPopup.close(); //close the popup after 6 seconds for some reason
}, 6000);
//remove this.
您可以使用“myPopup.close();”用于在做出选择后关闭弹出窗口。(即在JQuery中侦听radio select事件),然后继续更改类
确保移除自动关闭
$timeout(function() {
myPopup.close(); //close the popup after 6 seconds for some reason
}, 6000);
//remove this.
您可以使用“myPopup.close();”用于在做出选择后关闭弹出窗口。(即在JQuery中侦听radio select事件),然后继续更改类
确保移除自动关闭
$timeout(function() {
myPopup.close(); //close the popup after 6 seconds for some reason
}, 6000);
//remove this.
您可以使用“myPopup.close();”用于在做出选择后关闭弹出窗口。(即在JQuery中侦听radio select事件),然后继续更改类
确保移除自动关闭
$timeout(function() {
myPopup.close(); //close the popup after 6 seconds for some reason
}, 6000);
//remove this.
食品
如果您询问它为什么不改变,请给出ng model=“data.value”
它将被分配新的值。这样我就会被反射回来。食物
如果您询问它为什么不改变,请给出ng model=“data.value”
它将被分配新的值。这样我就会被反射回来。食物
如果您询问它为什么不改变,请给出ng model=“data.value”
它将被分配新的值。这样我就会被反射回来。食物
如果您询问它为什么不改变,请给出ng model=“data.value”
它将被分配新的值。这样我就会被反射回来