I\'m trying to create a multiselect dropdown list with checkbox and filter option. I\'m trying to get the list hidden with I click outside but could not figure it out how. A
OK I had to call $apply() as the event is happening outside angular world (as per doc).
element.bind('click', function(event) { event.stopPropagation(); }); $document.bind('click', function(){ scope.isVisible = false; scope.$apply(); });