在一个cotroller中的scope如何在modal中的controller中使用,怎么传过去,研究了下$scope.$parent,还是没明白怎么弄
phpcn_u15822017-05-15 17:03:38
If you use the UI Bootstrap modal, there is a scope parameter, just pass the $scope of the controller directly:
scope (Type: $scope) - The parent scope instance to be used for the
modal's content. Defaults to $rootScope.