getDirectiveMetadata
function
stable
Returns the debug (partial) metadata for a particular directive or component instance. The function accepts an instance of a directive or component and returns the corresponding metadata.
API
function getDirectiveMetadata(
directiveOrComponentInstance: any,
): AngularComponentDebugMetadata | AngularDirectiveDebugMetadata | null;getDirectiveMetadata
AngularComponentDebugMetadata | AngularDirectiveDebugMetadata | nullReturns the debug (partial) metadata for a particular directive or component instance. The function accepts an instance of a directive or component and returns the corresponding metadata.
@paramdirectiveOrComponentInstance
anyInstance of a directive or component
@returns
AngularComponentDebugMetadata | AngularDirectiveDebugMetadata | nullJump to details