Angular JS route causing infinite loop

后端 未结 9 1477
清歌不尽
清歌不尽 2020-12-31 11:00

I\'m trying to figure out why the page doesn\'t navigate to its template when clicked. The URL updates, and I have no JS errors.. I believe it loads the file, but t

相关标签:
9条回答
  • 2020-12-31 11:24

    My problem was related on specifying the templateUrl without initial "/" not only on my router but on my directives!!

    0 讨论(0)
  • 2020-12-31 11:29

    My problem was with a template URL which was incorrect, and then started triggering a route that matched the URL pattern. Double check your templateUrl path is correct.

    0 讨论(0)
  • 2020-12-31 11:31

    I had this same problem and ultimately realized I had not actually created the partial html file that I was telling it to load in my app.config - if it can't find the template file, Angular seems to go into an infinite loop of the controller function.

    0 讨论(0)
提交回复
热议问题