danielepiccone / ng-pageslide

AngularJS sliding panel for serving additional content from off the page
http://danielepiccone.github.io/ng-pageslide/examples/
451 stars 160 forks source link

Ps-open variable not updated on parent scope when using a pageslide close #132

Closed zelias500 closed 8 years ago

zelias500 commented 8 years ago

I'm using the pageslide as a mobile navigation menu, so the ps-open boolean is set via a button on a topnavbar with its own controller.

When I close the pageslide via outside-click, esc key, or location change (aka auto-close), that variable isn't properly updated in my navbar controller. This means that I can't re-open the pageslide after closing it once using this method.

However, if I close the pageslide by explicitly changing the ps-open boolean (e.g. hit the open button again), everything works perfectly.