我正在使用角质材料为html5移动应用程序开发的安卓。但我对模态对话框有一些意见。
预期行为:
如果我打开模态对话框并点击设备'GO‘按钮,模态对话框应该关闭,页面被重定向到另一个视图。
电流行为
模态对话框正在关闭,但页面不会重定向到antoher视图(问题仅在移动中)
控制器
$scope.kycRequest = function(){
$state.go("kycInfo");
$mdDialog.hide();
};发布于 2015-09-29 10:04:20
你的state.go('kycInfo)应该进入onComplete
$mdDialog.show({
onComplete: function(){
$state.go("kycInfo");
});
});https://material.angularjs.org/0.9.6/#/api/material.components.dialog/service/$mdDialog
https://stackoverflow.com/questions/32839378
复制相似问题