angularjs - Angular app running auth via adal.js won't load template partials unless user logged in -


i'm using adal-angular.js part of auth chain.

everything works pages require auth. pages not require auth load, won't load partials included in view.

for example, index.html page has this:

<ng-include src="'/module/utility/view/footer.html'"></ng-include> 

the footer appears if user logged in.

i suspect problem similar this bug report, i'm not quite getting there.

i tried adding anonymousendpoints adal init, so:

adalauthenticationserviceprovider.init(     {         tenant: "xxx", // optional default, sends common         clientid: "xxx", // required         anonymousendpoints: ['/app/module/utility/view/footer.html']         // tried:         //anonymousendpoints: ['/app/module/utility/view/']         //anonymousendpoints: ['/']         //and soforth.     },     $httpprovider ); 

still no footer. also, no errors.

any help?

okay, answer pretty simple.

what little documentation there on problem suggests this:

anonymousendpoints: ['/app/module/utility/view/'] 

that didn't work me. did:

anonymousendpoints: ['/module/utility/view/footer.html'] 

the path needs relative app.js, me in app folder.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -