Injector in Console

https://www.notion.so/Injector-in-Console-f1cf7162406843329c29f78f035b8714

1
2
3
4
// Get the injector
var injector = angular.element($0/*'[data-ng-app], [ng-app]'*/).injector();
// Get the service
var service = injector.get('Service');
This post is licensed under CC BY 4.0 by the author.