angularjs Error: [$compile:tpload] Failed to load template

前端 未结 4 890
谎友^
谎友^ 2021-01-05 02:50

I am trying to build simple routing app in angularjs. I have main index.html page with ng-view div and javascript code for routing. Also 2 simple html pages view2.html and v

4条回答
  •  渐次进展
    2021-01-05 03:32

    In my case, the issue is that I added Default Headers such as Accept = 'application/json'. So my routes suddenly stopped working, because those headers were not only applied to my $http.post calls, they were also applied to my Routing... ? Weird.

提交回复
热议问题