Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

ng.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.

      
      ng.getDirectiveMetadata(directiveOrComponentInstance: any): ComponentDebugMetadata | DirectiveDebugMetadata | null
    
Parameters
directiveOrComponentInstance any

Instance of a directive or component

Returns

ComponentDebugMetadata | DirectiveDebugMetadata | null: metadata of the passed directive or component