to show you my problem, here a link
http://codepen.io/destroy90210/pen/adbCy
if you click on the button the first time it fades up and the form will be shown, if i click on reset then the form get closed, but now if i want to open it again nothing happens, it seems that the function "openForm()" never get called again.
does anybody knows why??
Your function and bool have the same name,
$scope.openForm
You are overriding the function tofalse
on the close event (as well astrue
on the open).Solution, use a different name for the bool
Demo: http://codepen.io/anon/pen/tGwAI