如果你用的UI Bootstrap的modal, 有个scope参数,直接把controller的$scope传进去就行了: scope (Type: $scope) - The parent scope instance to be used for themodal's content. Defaults to $rootScope.
如果你用的UI Bootstrap的modal, 有个scope参数,直接把controller的$scope传进去就行了: