我有一个打开模态窗口的控制器。 如何在打开模态窗口时更改templateUrl值?
$ionicModal.fromTemplateUrl('modal-details.html', {
scope: $scope,
animation: 'slide-in-up',
hardwareBackButtonClose: true
}).then(function (modal) {
$scope.modal = modal;
});
//在这里打开窗口..
$scope.openModal = function(selected){
// How can I change the templateUrl based on the selected value?
$scope.data.selected = selected;