title: What is the equivalent of .closest jQuery function in AngularJs?
body: <p>I am tryin to implement a custom popup window in Angular. The problem is when clicking outside of the popup when opened i dont know how to implement it easily without an overlay. I have found that in libraries based on jQuery is common to use the <code>.closest</code> function for this but i can not find an alternative in plain Javascript way.</p>