Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

stickyModal not working for $state.go #357

Open
lbngoc opened this issue Dec 28, 2016 · 3 comments
Open

stickyModal not working for $state.go #357

lbngoc opened this issue Dec 28, 2016 · 3 comments

Comments

@lbngoc
Copy link

lbngoc commented Dec 28, 2016

I follow "Minimal Modal Sticky States demo" to create this codepen: http://codepen.io/lbngoc/pen/zoVMEE
Currently, the modal is showing when use "ui-sref",
but when I go to state from $state.go, nothing is happened...
Please help to take a look and give me some advices..

@bigb6611
Copy link

bigb6611 commented Jan 17, 2017

It works with a few tweaks to your code! ;-)

http://codepen.io/anon/pen/egBgJp

@lbngoc
Copy link
Author

lbngoc commented Jan 18, 2017

@bigb6611 so we need stop the event to keep the code working, right ?

@bigb6611
Copy link

@lbngoc, that's right!

One other thing I noticed in your pen is the scope function name referenced on the ng-click event does not match the one defined on the root scope: openLoginModal vs openModalLogin

With this typo fixed, it all seems to work fine!

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

No branches or pull requests

2 participants