我有一个Angular应用程序,并在其他组件中使用Angular-Material.是否可以使用延迟加载的TemplateUrl打开Angular Tab对话框,其中包含Angular表单?如果可能的话,你会如何参考这个表格?这是我用来打开对话框的一些代码:
$scope.showTabDialog = function(ev) {
$mdDialog.show({
controller: DialogController,
templateUrl: 'pages/properties/tabDialog.tmpl.html',
parent: angular.element(document.body),
targetEvent: ev,
clickOutsideToClose:true
})
.then(function(answer) {
$scope.status = 'You said the information was "' + answer + '".';
}, function() {
$scope.status = 'You cancelled the dialog.';
});
};
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激,谢谢