angular js Error: Failed to load template

I used adal-angular js to protect my routes.

  $routeProvider.
        when("/dashboard", { templateUrl: "Views/Dashboard.html", controller: "DashboardController", requireADLogin: true })

But when Adal getting token, I have an error in console:

Error: [$compile:tpload] Failed to load template: Views/Dashboard.html (HTTP status: undefined undefined)

Could someone know why it happens?


First, forgive my english.

For me only have worked when I specified "/myUrl" in anonymousEndpoints. That skip the interceptor for this backend url.


I had an issue with this for angular ui bootstrap templates. Adding the path "uib/" to the anonymous endpoints array fixed my problem.

链接地址: http://www.djcxy.com/p/90478.html

上一篇: Spring Web MVC:不再需要HTTP DELETE的请求体

下一篇: 角度js错误:无法加载模板