Application context
Application context
Getting started
@@filename()
async function bootstrap() {
const app = await NestFactory.createApplicationContext(ApplicationModule);
// application logic...
}
bootstrap();@@filename()
const app = await NestFactory.create(ApplicationModule);
const tasksService = app.get(TasksService);@@filename()
const app = await NestFactory.create(ApplicationModule);
const tasksService = app.select(TasksModule).get(TasksService, { strict: true });Last updated