Here the Sample Link如何通過angularjs將值傳遞給一個控制器到另一個控制器?
我試着實現模態窗口。我從網上找到一些樣本,並且實施了。
在這裏我添加了模態窗口的示例文件。這工作正常。
我確實需要的是在打開模型窗口時我會調用這個函數。
$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?
任何一個可以幫助我在這?...
您可以使用服務這一點。 –
你能解釋一下嗎? @ hadiJZ –
可能會幫助你http://stackoverflow.com/questions/20181323/passing-data-between-controllers-in-angular-js –