everyone.
Will start from the prob - How can i pass the variable back from the AngularJS UI Boostrap Modal on the user's background click or ESC button keyboard trigger?
there are solution to prevent user for doing that: How do I prevent angular-ui modal from closing?
But in my case, i think it can make a user stuck, because there is only one btn triggering the $uibModalInstance.close($scope.choosenLocationLatLng);
action.
So i want to pass the variable back on background click and ESC keyboard btn also if its possible.