|
1 |
| -import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Directive, DoCheck, ElementRef, EmbeddedViewRef, EventEmitter, forwardRef, Host, HostListener, inject, Inject, InjectionToken, Input, IterableDiffer, IterableDiffers, NgZone, NO_ERRORS_SCHEMA, OnDestroy, Output, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core'; |
| 1 | +import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Directive, DoCheck, ElementRef, EmbeddedViewRef, EventEmitter, forwardRef, Host, HostListener, inject, Inject, InjectionToken, Input, IterableDiffer, IterableDiffers, NgZone, OnDestroy, Output, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core'; |
2 | 2 | import { ItemEventData, KeyedTemplate, LayoutBase, ListView, ObservableArray, profile, View } from '@nativescript/core';
|
3 | 3 |
|
4 | 4 | import { extractSingleViewRecursive } from '../../element-registry/registry';
|
5 | 5 | import { NativeScriptDebug } from '../../trace';
|
6 | 6 | import { isListLikeIterable } from '../../utils/general';
|
7 | 7 | import { NgViewTemplate } from '../../view-refs';
|
| 8 | +import { DetachedLoader } from '../detached-loader'; |
8 | 9 |
|
9 | 10 | const NG_VIEW = '_ngViewRef';
|
10 | 11 |
|
@@ -91,8 +92,8 @@ export interface SetupItemViewArgs<T> {
|
91 | 92 | </DetachedContainer>`,
|
92 | 93 | standalone: true,
|
93 | 94 | changeDetection: ChangeDetectionStrategy.OnPush,
|
| 95 | + imports: [DetachedLoader], |
94 | 96 | providers: [{ provide: TEMPLATED_ITEMS_COMPONENT, useExisting: forwardRef(() => ListViewComponent) }],
|
95 |
| - schemas: [NO_ERRORS_SCHEMA], |
96 | 97 | })
|
97 | 98 | export class ListViewComponent<T = any> implements DoCheck, OnDestroy, AfterContentInit, TemplatedItemsHost {
|
98 | 99 | public get nativeElement(): ListView {
|
|
0 commit comments