光阴似箭催人老,日月如移越少年。
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 themodal's content. Defaults to $rootScope.
If you use the UI Bootstrap modal, there is a scope parameter, just pass the $scope of the controller directly: