Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/core/data/decorators

Index

Functions

Functions

  • provider(namespace: string): (target: Function) => void
  • provider(provider: Function): void
  • Registers a data provider class to the global store with the specified namespace: the namespace value is concatenated with a name of the provider class

    decorator
    example
    // The provider is registered as 'user.List'
    @provider('user')
    class List extends Provider {}

    Parameters

    • namespace: string

      namespace string

    Returns (target: Function) => void

      • (target: Function): void
      • Registers a data provider class to the global store with the specified namespace: the namespace value is concatenated with a name of the provider class

        decorator
        example
        // The provider is registered as 'user.List'
        @provider('user')
        class List extends Provider {}

        Parameters

        • target: Function

        Returns void

  • Registers a data provider class to the global store by a name of the provider class

    decorator
    example
    // The provider is registered as 'List'
    @provider
    class List extends Provider {}

    Parameters

    • provider: Function

      provider class

    Returns void