Angularjs 打开/选择时更改离子模式模板
我有一个打开模式窗口的控制器。 打开模式窗口时,如何更改templateUrl值Angularjs 打开/选择时更改离子模式模板,angularjs,Angularjs,我有一个打开模式窗口的控制器。 打开模式窗口时,如何更改templateUrl值 $ionicModal.fromTemplateUrl('modal-details.html', { scope: $scope, animation: 'slide-in-up', hardwareBackButtonClose: true }).then(function (modal) { $scope.modal = modal; }); //打开这里的窗户 $scope.
$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;
如果在
model details.html中包含一个ng include
,它将根据打开时选择的值进行更改,那该怎么办呢。。你能给我更多的信息吗。