I'm just started learning angularJS and I wish to build some dropdowns and tabs with bootstrap and angular. I know there is a full angular bootstrap library out there, but I don't want to use it, since I want to know whats going on behind the scenes. So I'm trying to build the needed dropdown functionality, but haven't been able to do so. The problem is:
- I have to click the dropdown if its opened before it can disappear again. I wish to be able to click / touch anywhere but the dropdown to close i again.
I've made a pen of the current markup/functionality: http://codepen.io/anon/pen/EBwlA
This is my first angular project so if anything is not done "the correct way" please feel free to tell me :)
Thanks