2015-12-09 54 views
0

如果沒有手動關閉警報彈出窗口,則無法關閉網頁重定向。那麼問題出在哪裏?怎麼辦才能關閉警報彈出窗口。

$ionicPopup.alert({title:"error",template:"error"}); 

回答

0

您可以使用返回的承諾的close函數以編程方式關閉彈出窗口。

popup = $ionicPopup.alert({title:"error",template:"error"}); 

//then... 

popup.close(); 

Check the documentation