๐ŸŒ€
type-chef-di Docs
GitHub
  • ๐Ÿ‘‹Welcome to type-chef-di documentation
  • Overview
    • โœจGetting started
  • Fundamentals
    • ๐ŸŽContainer Options, extendability
    • ๐Ÿ‘จโ€๐ŸณInjection
      • ๐Ÿ•Type injection
      • ๐ŸชToken registration
      • โ˜•Token Injection
      • ๐ŸŒฎMixed injection
    • ๐Ÿ› ๏ธDecorators
      • โœ…@Injectable({instantiation: "singleton" | "prototype"})
      • ๐ŸŽฏ@Inject<T>(key: string | Type<T>)
      • ๐Ÿ@InjectProperty<T>(key: string | Type<T>)
      • ๐Ÿญ@Setter()
      • ๐Ÿ”†@InitMethod()
      • ๐Ÿญ@FactoryMethod()
      • โšก@AddTags(tags)
      • ๐Ÿชƒ@RunBefore(key: string | Type<IRunBefore>)
      • ๐Ÿ›ด@RunAfter(key: string | Type<IRunAfter>)
      • ๐ŸŒ•@MethodWrapper(key: string | Type<IMethodWrapper>)
  • Use Cases
    • ๐ŸŽจPlans
    • ๐Ÿ–ฅ๏ธFor Developers
  • Other
    • ๐Ÿ’กDI / IoC
Powered by GitBook
On this page
Edit on GitHub
  1. Fundamentals

๐Ÿ› ๏ธDecorators

โœ…@Injectable({instantiation: "singleton" | "prototype"})๐ŸŽฏ@Inject<T>(key: string | Type<T>)๐Ÿ@InjectProperty<T>(key: string | Type<T>)๐Ÿญ@Setter()๐Ÿ”†@InitMethod()๐Ÿญ@FactoryMethod()โšก@AddTags(tags)๐Ÿชƒ@RunBefore(key: string | Type<IRunBefore>)๐Ÿ›ด@RunAfter(key: string | Type<IRunAfter>)๐ŸŒ•@MethodWrapper(key: string | Type<IMethodWrapper>)
PreviousMixed injectionNext@Injectable({instantiation: "singleton" | "prototype"})

Last updated 2 years ago