ng.getDirectiveMetadata
From Get docs
< @angular/core | globalAngular/docs/latest/api/core/global/nggetdirectivemetadata
ng.getDirectiveMetadata
global
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.
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
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/global/ngGetDirectiveMetadata