Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adal-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?

like image 982
Oleg Avatar asked Feb 26 '16 11:02

Oleg


1 Answers

First, forgive my english.

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

like image 195
Ana Paula Lazzarotto de Lemos Avatar answered Nov 15 '22 04:11

Ana Paula Lazzarotto de Lemos