小编joh*_*han的帖子

具有角形的角度对话框

我有一个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)

任何帮助将不胜感激,谢谢

angularjs angular-material

6
推荐指数
1
解决办法
243
查看次数

标签 统计

angular-material ×1

angularjs ×1