2016-07-12 11 views
0

私は小さなアプリケーションを構築するためにイオンの枠組みで実施しようとしていますが、警告のポップアップが、それにはボタンがありません。何らかの理由でそれは見えません。イオンポップアップボタンは表示されません

これは、それがどのように見えるかである -

app

私のコントローラ -

angular.module('starter.controllers', []) 

.controller('DashCtrl', function($scope,$ionicPopup) { 
$scope.users = {}; 
$scope.show = function() { 
var popup = $ionicPopup.show({ 
title: 'Don\'t eat that!', 
template: 'It might taste good' 
}); 
}; 

}) 

理由何ができるかを提案してください?

ありがとうございました。

答えて

0

私はalertshowを変更しなければならなかった、それが働きました。

$ionicPopup.alert 
0

$ionicPopup.show 

あなたは

buttons: [ 
    { text: 'Cancel' } 
] 

構成オブジェクトでそれにボタンを追加することができますHere

0

を確認することができます

// An alert dialog 
$scope.showAlert = function() { 
    var alertPopup = $ionicPopup.alert({ 
    title: 'Don\'t eat that!', 
    template: 'It might taste good' 
    }); 

    alertPopup.then(function(res) { 
    console.log('Thank you for not eating my delicious ice cream cone'); 
    }); 
}; 
にあなたのコードを変更します

あなたは$ionicPopup.show、ボタンが利用できない可能$ionicPopup.alertが欠落しています。

Reference