Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ps-key-listener, ps-click-outside re-open issue #133

Open
resistancecanyon opened this issue Aug 17, 2016 · 5 comments
Open

ps-key-listener, ps-click-outside re-open issue #133

resistancecanyon opened this issue Aug 17, 2016 · 5 comments

Comments

@resistancecanyon
Copy link

If we set either ps-keylistener or ps-click-outside to true, the slider is working properly & closes the first time.
The second time we try to open the slider by setting
ps-open="scopeVariable" & setting $scope.scopeVariable=true;
The slider won't open again.
The scope variable is not affected anymore.

I had to made it work by using manual ng-click on a button to explicitly set the $scope.scopeVariable to true & false

version : ng-pageslide#^2.0.1

@songokudbz
Copy link

I can't make it work! How did you fixed this?

@songokudbz
Copy link

I've fixed this by adding $parent: <div pageslide ps-open="$parent.isMenuOpened"... . In my case i was including the template with ng-include, so I needed to add $parent. Hope it helps.

@danielepiccone
Copy link
Owner

I am trying to replicate it, but I am not able to.
There's an example with the key listener, and it keeps working when you use the key listener to close and the button (which flips $scope.open bound to ps-open) to true.
Could you put together a plunker for this?

@songokudbz
Copy link

Yes I will try to put one together when I have a little time. Seasons greetings until then.

@danielepiccone
Copy link
Owner

Likewise 🎄 🎄 🎄 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants