Skip to content

Commit 46547a5

Browse files
committed
feat: standalone components
1 parent cb07fd1 commit 46547a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/angular/src/lib/cdk/list-view/list-view.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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';
22
import { ItemEventData, KeyedTemplate, LayoutBase, ListView, ObservableArray, profile, View } from '@nativescript/core';
33

44
import { extractSingleViewRecursive } from '../../element-registry/registry';
55
import { NativeScriptDebug } from '../../trace';
66
import { isListLikeIterable } from '../../utils/general';
77
import { NgViewTemplate } from '../../view-refs';
8+
import { DetachedLoader } from '../detached-loader';
89

910
const NG_VIEW = '_ngViewRef';
1011

@@ -91,8 +92,8 @@ export interface SetupItemViewArgs<T> {
9192
</DetachedContainer>`,
9293
standalone: true,
9394
changeDetection: ChangeDetectionStrategy.OnPush,
95+
imports: [DetachedLoader],
9496
providers: [{ provide: TEMPLATED_ITEMS_COMPONENT, useExisting: forwardRef(() => ListViewComponent) }],
95-
schemas: [NO_ERRORS_SCHEMA],
9697
})
9798
export class ListViewComponent<T = any> implements DoCheck, OnDestroy, AfterContentInit, TemplatedItemsHost {
9899
public get nativeElement(): ListView {

0 commit comments

Comments
 (0)