填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

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
    
参数
directiveOrComponentInstance any

Instance of a directive or component

返回值

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