You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
Beta Was this translation helpful? Give feedback.
All reactions