Angular directive to execute a function when the user is clicking anywhere but the target element. Commonly used to dismiss popups/dialogs.