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