Infinite Loop as a result of incorrect routing

1,343 views
Skip to first unread message

Oz Basarir

unread,
Apr 28, 2013, 1:54:58 AM4/28/13
to ang...@googlegroups.com
Angular goes into an infinite loop as a result of an incorrectly generated route which in turn cannot locate the template. I created the smallest project I could to demonstrate the problem:

https://github.com/wizardoz/minimalApp

Unless I am missing something that can be done on the layer above Angular, this looks like I would need to debug into the Angular code. I wanted to get some perspective from the experts before spending much more time on it.

Thank you!

Oz Basarir

unread,
Apr 28, 2013, 1:58:02 PM4/28/13
to ang...@googlegroups.com
Infinite loop problem can be avoided by setting base href to '/' instead of document.location and by prefixing templateUrls with '/'.

For details, please see: http://stackoverflow.com/questions/16259890/angularjs-infinite-loop
Reply all
Reply to author
Forward
0 new messages