I have a slideUp configuration area that should close when clicked outside of it, but of course not when clicked inside the element. All the questions I could find here about that subject, was about hiding menus, in which case it doesn't really matter where the click target is.
After several hours I devised a working solution - available in this plunker - but I had to use jQuery to test if the click-target was indeed outside of the element.
As I'm in the process of learning AngularJS I'd like to avoid using jQuery; I was told that was the best way to learn it ;)
Is there a way to detect that? I bet it's very obvious, but the most trivial things takes hours at the stage I'm currently on :D
Edit: The real issue here is detecting if the click is in- or outside of the element without "eating" any relevant events.