Angularjs 正在单击“不工作”按钮

Angularjs 正在单击“不工作”按钮,angularjs,ionic-framework,Angularjs,Ionic Framework,我在Ionic中有一个模式,显示了供用户选择的国家标志列表,但是我在语言标志上的ng单击似乎不会触发我分配的$scope.function()。以下是我得到的: 显示模式: $scope.showLanguages = function() { var myPopup = $ionicPopup.show({ templateUrl: 'templates/languageSelect.html', title: 'Language Select',

我在Ionic中有一个模式,显示了供用户选择的国家标志列表,但是我在语言标志上的ng单击似乎不会触发我分配的$scope.function()。以下是我得到的:

显示模式:

$scope.showLanguages = function() {
  var myPopup = $ionicPopup.show({
       templateUrl: 'templates/languageSelect.html',
       title: 'Language Select',
       scope: $scope,
       buttons: [
         {
             text: '<b>Close</b>',
             type: 'button-positive',
             onTap: function (e) {
                return;
             }
         }
       ],
       cssClass: 'animated bounceInDown'
  });
}
有人能告诉我我可能做错了什么吗?这看起来像是爱奥尼亚的一个错误,但我可能错了


谢谢

原来它正在工作,但没有显示警报。。。我怀疑这是因为它在模态范围内?我不知道

无论如何,上面的代码毕竟没有错

<div class="row">
  <button ng-class="getFlagClass(language)" ng-click="setLanguage()" class="col flag-icon flag-icon-squared" ng-repeat="language in data.languages" />
</div>
$scope.setLanguage = function() {
    alert('test');
}