TobiasandLineke Philipp TobiasandLineke Philipp - 1 year ago 123
AngularJS Question

AngularJS ui-sref links stuck

I got an AngularJS based website. Everything is working fine. For navigation I use ui.router.

After I use a lightbox (simplbox.js) links stop working. There is no error message in the log, no warning or anything that indicates that using simplbox and ui.router might cause problems.

Could there be any other reason, why links stop working? If not, how could I debug this?


Once I open and close the simplbox I can use exactly one more link, then links stop working. However, simplbox is still working, as well as other features of the site. "Only" navigation is frozen.

Answer Source

I found a solution that still does not satisfy me entirely. So if anybody can provide some insight I'd be happy to change the accepted answer.

The error was caused by the way I implemented the jquery.min.js. So totally unrelated to angularJS and ionic. First I use a generated cdn code such as

<script src="" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="crossorigin="anonymous"></script>

Back then it was version 2.2.2. What I did was to download the exact same version and include it directly in my index.html.

Changing it back from local to cdn everything works as should do. No problems with the ui-sref links.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download