
##########
getService
##########

.. js:function:: wvc.getService

   .. rst-class:: sig-pretty-signature
   
      | getService(**serviceName**\ : :js:data:`ServiceName <wvc.ServiceName>`\ ): T
   
   Retrieves a service from the service registry by its name, throw if the service is not registered.
   
   **Parameters**
   
   
      **serviceName**\ : :js:data:`ServiceName <wvc.ServiceName>`
   
   
         The name of the service to retrieve.
   
   
   
   **Returns**\ : T
   
   
      T - The service if found, otherwise undefined.
   
   




