scope.$apply(scope.hideModal)