Angular JS route causing infinite loop

后端 未结 9 1483
清歌不尽
清歌不尽 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条回答
  •  旧时难觅i
    2020-12-31 11:11

    Had the same "infinite reload" problem and Alex Johnson made me think. Indeed, if the path of templateURL is empty (this was my case) or wrong path, an infinite reload of resources will happen. For me the solution was simple: I replaced templateURL: '' with template: ''.

提交回复
热议问题