The source of the error is a wrong path for the html template to be included. If the template path is incorrect and does not match any server route the sever default is to serve the whole index.html
. This initiates an infinite loop because upon loading index.html
the include
template is requested again with the wrong path and index.html is served, and included, again and again and again .. resulting in the "10 $digest() iterations reached" error
In my case the correct path to request the test.html
from the server is static/src/views/test.html
.
Changing the include from this
<div ng-include="'test.html'"> </div>
to this
<div ng-include="'static/src/views/test.html'"> </div>
solves the problem.