我在 controller.js 中有一个警报功能:
function showAlertFinishedTest() {
var confirmPopup = $ionicPopup.confirm({
title: 'Finished',
scope: $scope,
template: 'Are you sure to submit the result?'
});
confirmPopup.then(function(res) {
if (res) {
console.log('Submit file json!');
} else {
console.log('Get back to the test!');
}
});
};
在 if(res){} 中按下提交按钮时如何重定向到另一个模板?
感谢您的所有回答!