How to pass (Debug vs Release) args to an Aurelia App within Asp.Net MVC
问题 How would you go about passing Debug vs Release arguments to an Aurelia app? In my case, I have Aurelia within a MVC app. I would like to configure some parameters (URLs, etc.) for Aurelia depending on my web.config values. Is there a way I could to something like: <script src="~/Aurelia/jspm_packages/system.js"></script> <script src="~/Aurelia/config.js"></script> <script> System.import('aurelia-bootstrapper', @this.ViewBag.MyArgs); </script> Where this.ViewBag.MyArgs would contains