Inputting angular.injector().get('$scope') directly in the chrome console always reports an error, saying that the provider is unknown. Please let me know if injector() needs to pass parameters? For example, a self-defined module? Or what are the specific services of get?
过去多啦不再A梦2017-05-15 17:06:45
You can do this in the chrome console:
angular.element(document.body).injector().get('serviceName')