Recently, I've started delving into angularJS and I'm eager to create dropdowns and tabs using both bootstrap and angular. Although there is a comprehensive angular bootstrap library available, I prefer not to use it in order to gain a deeper understanding of the underlying mechanisms. However, I've encountered some difficulties while attempting to develop the necessary dropdown functionality. The issue at hand is:
- I find that I have to click on the dropdown to close it if it's already open. Ideally, I would like to be able to close it by clicking or tapping anywhere outside of the dropdown.
I've created a pen showcasing my current markup and functionality: http://codepen.io/anon/pen/EBwlA
This happens to be my initial angular project; hence, if any aspect seems off-base or could be improved upon, please don't hesitate to provide feedback :)
Many thanks!