This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

InjectSetupWrapper

      
      class InjectSetupWrapper {
  constructor(_moduleDef: () => TestModuleMetadata)
  inject(tokens: any[], fn: Function): () => any
}
    

Constructor

constructor(_moduleDef: () => TestModuleMetadata)
      
      constructor(_moduleDef: () => TestModuleMetadata)
    

Parameters

_moduleDef

Type: () => TestModuleMetadata.

Methods

inject(tokens: any[], fn: Function): () => any
      
      inject(tokens: any[], fn: Function): () => any
    

Parameters

tokens

Type: any[].

fn

Type: Function.

Returns

() => any