How do you access an angular factory object without using DI that angular provides? For example, I want to have a separate script that adds some server properties to a factory object outside of angular (in a .cshtml file). I don't want to assign the factory object to a separate variable as that would create a global variable.
问问题
107 次