AngularJS directive to handle a click outside an element.