• Overview
@angular/core/globals

getDirectiveMetadata

function

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.

  
    function getDirectiveMetadata(  directiveOrComponentInstance: any): DirectiveDebugMetadata | ComponentDebugMetadata | null;
  
  

getDirectiveMetadata

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.

@paramdirectiveOrComponentInstanceany

Instance of a directive or component

Jump to details