Modules | NestJS - A progressive Node.js framework
A module is a class annotated with a @Module() decorator. The @Module() decorator provides metadata that Nest makes use of to organize the application structure. Each application has at least one module, a root module. The root module is the starting point Nest uses to build the application graph - the internal data structure Nest uses to resolve module and provider relationships and dependencies. While very small applications may theoretically have just the root module, this is not the typical case. We want to emphasize that modules are strongly recommended as an effective way to organize your components. Thus, for most applications, the resulting architecture will employ multiple modules, each encapsulating a closely related set of capabilities. The @Module() decorator takes a single object whose properties describe the module: The module encapsulates providers by default. This means that it's impossible to inject providers that are neither directly part of the current module nor exp
Modules A module is a class annotated with the @Module() decorator. The decorator provides metadata that Nest uses to organize and manage the application structure. Every Nest application has at least one module, the root module. It is the starting point from which Nest builds the application graph, the internal structure Nest uses to resolve relationships and dependencies between modules and providers. A very small application may have only a root module, but most applications have multiple modules, each encapsulating a closely related set of capabilities. Modules are the recommended way…
saved by
related reading
- Providers | NestJS - A progressive Node.js frameworkdocs.nestjs.com
- Documentation | NestJS - A progressive Node.js frameworkdocs.nestjs.com
- Documentation | NestJS - A progressive Node.js frameworkdocs.nestjs.com
- Middleware | NestJS - A progressive Node.js frameworkdocs.nestjs.com
- Documentation | NestJS - A progressive Node.js frameworkdocs.nestjs.com
- Bulletproof node.js project architecture 🛡️softwareontheroad.com
- Modules and crates - Rust for C-Programmersrust-for-c-programmers.com
- Modules | webpackwebpack.js.org
- How to write a production-ready Node and Express appfreecodecamp.org
- Documentation | NestJS - A progressive Node.js frameworkdocs.nestjs.com
- CommonJS规范 -- JavaScript 标准参考教程(alpha)javascript.ruanyifeng.com
- Documentation | NestJS - A progressive Node.js frameworkdocs.nestjs.com