Is there any solution that can implement the click away feature with ng-show?
Here is the plunker: http://jsfiddle.net/o0dwsrqf/
I'm using the button to show the text.
<button ng-click="test=!test">test</button>
And I'm using ng-show to show the text:
<ul ng-show="test">
And when I click away from the text I want to hide it. Is there anyway I can achieve this?
EDIT:
Defining click away I mean click anywhere else besides button and text area. When I click away I want to hide the text.
– Gabriel Aug 07 '15 at 23:44