angular access service in console code example Example: angular access service in console angular.element(document.body).injector().get('serviceName')