(lView: LView, error: any)
| 705 | |
| 706 | /** Handles an error thrown in an LView. */ |
| 707 | export function handleUncaughtError(lView: LView, error: any): void { |
| 708 | const injector = lView[INJECTOR]; |
| 709 | if (!injector) { |
| 710 | return; |
| 711 | } |
| 712 | let errorHandler: ((e: any) => void) | null; |
| 713 | try { |
| 714 | errorHandler = injector.get(INTERNAL_APPLICATION_ERROR_HANDLER, null); |
| 715 | } catch { |
| 716 | errorHandler = null; |
| 717 | } |
| 718 | errorHandler?.(error); |
| 719 | } |
| 720 | |
| 721 | /** |
| 722 | * Set all directive inputs with the specific public name on the node. |
no test coverage detected
searching dependent graphs…