Auto turn off toggle button when other one is turned on
问题 i have nested toggle buttons which are off by default, when its on it save a value to localstorage. What i want to do is when one is turned on and you try to turn the other on, the first one should be turned off automatically while the other turns on .controller('shops',['$scope','$http','$timeout',function($scope,$http,$timeout){ $http.get('http://localhost/moves/templates/shopping.php').success(function(data){ $scope.shops=data ; }); $scope.pushNotification = {}; $scope.pushNotification