NestJS · Junior · Question 63 of 75
Which lifecycle hook runs once a module's dependencies are resolved?
- 1
ngOnInit() - 2
componentDidMount() - ✓Correct answer:
onModuleInit()
Explanation
Others include onApplicationBootstrap, onModuleDestroy, beforeApplicationShutdown and onApplicationShutdown.