marklogic-community / slush-marklogic-node

Slush generator for a MarkLogic/node project
https://github.com/marklogic-community/slush-marklogic-node/wiki
Other
40 stars 28 forks source link

login from abstract state fails #518

Closed grtjn closed 6 years ago

grtjn commented 6 years ago

Not sure how I got there precisely, but was upgrading a slightly older project (running angular 1.4.14), and dropped in latest login.service.js. After that $state.reload() started complaining about abstract states. I wrapped that in if (! $state.current.abstract) {. That seemed to be enough to get passed the error, though it doesn't really explain how we got there in the first place. Maybe it is using some older dependency that wasn't optimized for abstract states yet?

grtjn commented 6 years ago

Maybe add above line by default, for improved robustness?