我试图实现模态窗口。我从网上找到了一些示例并实施了。
在这里,我添加了模态窗口的示例文件。这工作正常。
我真正需要的是在打开模型窗口时我会调用这个函数。
$scope.callType = {};
$scope.dataFormDialog = function (id) {
$scope.callType.id = id;
exDialog.openPrime({
scope: $scope,
template: '_Product.html',
controller: 'productController',
width: '450px',
//animation: false,
//grayBackground: false
});
};
这里我从 sampleController 调用 _Product.html 和 productController。
模态窗口当时从 sampleController 调用。
如何将 sampleController 的 $scope 值传递给 productController?
谁可以帮我这个事?...