如何访问嵌套AngularJS指令中的转置子作用域

如何访问嵌套AngularJS指令中的转置子作用域,angularjs,Angularjs,我有一个指令agreementDialog,它反过来使用通用对话框指令myapp dialog window模式: 我需要访问代码复选框中提到的变量VariableIntrascludedChildScope,但由于它位于转置内容内,因此它有一个单独的作用域,它是agreementDialog作用域的子级,也是myapp dialog window modal作用域的同级。访问它的最佳方式是什么?您尝试过使用绑定甚至事件吗?@PanosK绑定是什么意思?我想避免事件发生。 ng-model="s

我有一个指令agreementDialog,它反过来使用通用对话框指令myapp dialog window模式:


我需要访问代码复选框中提到的变量VariableIntrascludedChildScope,但由于它位于转置内容内,因此它有一个单独的作用域,它是agreementDialog作用域的子级,也是myapp dialog window modal作用域的同级。访问它的最佳方式是什么?

您尝试过使用绑定甚至事件吗?@PanosK绑定是什么意思?我想避免事件发生。
ng-model="smth.variableInTranscludedChildScope"

controller: function ($scope) {
  $scope.smth = {};

  // you can access $scope.smth.variableInTranscludedChildScope here
}
ng-model="smth.variableInTranscludedChildScope"

controller: function ($scope) {
  $scope.smth = {};

  // you can access $scope.smth.variableInTranscludedChildScope here
}