A simple directive to execute code when clicking outside of an element