(target: {})
| 339 | * the local references. |
| 340 | */ |
| 341 | export function getLocalRefs(target: {}): {[key: string]: any} { |
| 342 | const context = getLContext(target); |
| 343 | if (context === null) return {}; |
| 344 | |
| 345 | if (context.localRefs === undefined) { |
| 346 | const lView = context.lView; |
| 347 | if (lView === null) { |
| 348 | return {}; |
| 349 | } |
| 350 | context.localRefs = discoverLocalRefs(lView, context.nodeIndex); |
| 351 | } |
| 352 | |
| 353 | return context.localRefs || {}; |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Retrieves the host element of a component or directive instance. |
no test coverage detected
searching dependent graphs…