How could I centralise AngularJS configuration when part of an ASP.NET MVC project? -


i have angularjs spa served part of asp.net mvc application. within have angular factory accesses rest api elsewhere on our intranet. have various instances of api development, production , uat. i'd able configure url of api within web.config when build each different solution configuration correct url provided factory.

unfortunately i'm working within environment cannot use npm (it's complicated - suffice ntlm proxy authentication combined smartcard login don't play nicely npm), lot of front-end build tools seem might have been helpful aren't available use.

currently i'm thinking of adding method on controller returns value in web.config, doesn't seem terribly elegant. perhaps there's better way?


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -