From ea87c73c819eb239adecc58efdd1b69f7bd216a1 Mon Sep 17 00:00:00 2001 From: Kevin Butler Date: Tue, 30 Aug 2022 20:12:50 +0200 Subject: [PATCH] Fix documentation on using transient services cc https://github.com/typestack/typedi/issues/51 --- docs/typescript/02-basic-usage-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/typescript/02-basic-usage-guide.md b/docs/typescript/02-basic-usage-guide.md index c9b09dbd..75cef29f 100644 --- a/docs/typescript/02-basic-usage-guide.md +++ b/docs/typescript/02-basic-usage-guide.md @@ -146,7 +146,7 @@ same instance. If this is not the desired behavior a class can be marked as `tra import 'reflect-metadata'; import { Container, Inject, Service } from 'typedi'; -@Service({ scope: 'transient' }) +@Service({ transient: true }) class ExampleTransientClass { constructor() { console.log('I am being created!');