Replies: 3 comments 2 replies
-
@Sorikairox Can you help here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@itizarsa sorry I missed it. Your understanding is correct, injectables are globally available, but order of injection/import matters. |
Beta Was this translation helpful? Give feedback.
0 replies
-
How do handle circular imports? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In NestJS, to use an Injectable, you must export it in the module and then import that module or provider into your module. Otherwise, the class will not be automatically injected.
In Danet, based on the documentation, if you include Injectables in the original module and import that module into the AppModule, the Injectable can be injected into any other Injectables without needing additional imports in the module where it is used. Is my understanding correct?
Update: Lately I have seen the order of import matters in the App module, otherwise it errors
Beta Was this translation helpful? Give feedback.
All reactions