Angular JS route causing infinite loop

后端 未结 9 1493
清歌不尽
清歌不尽 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:12

    1. Check partial view path is the correct (check if you are getting HTTP code 302 for partial view. You can use morgan with Node+Express to print HTTP code for each request)

      1. If path is correct then you still may be getting infinite loop as Browser cache the static data. You can disable caching in chrome. To do so:
        • Open developer console
        • Click on setting button in developer console
        • Check on option "Disable cache (while DevTools is open)"
        • Restart the server and refresh the page with developer console in open state

    For me, problem solved after resolving the path issue and disabling the caching

提交回复
热议问题