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!');