How do I import different services ( displaySet services, viewport services and commands manager etc)?

How do I import different services ( displaySet services, viewport services and commands manager etc) ?

I want to use viewport services functions and displaySet services functions but i am confused how do I import them to use their functions in different files as I want to use these functions.

  • OHIF version - v3.8

use window.services

2 Likes

You can pass a servicesManager and an extensionManager to your routes as well as in your extensions’ modules and then pass them to your components.

What we are doing currently is prop-drilling them to the components that need them, but I guess you could use a context / provider

1 Like