fix(virtual-scroll): remove runOutsideAngular error (#18752)

fixes #18746
This commit is contained in:
Manu MA
2019-07-10 16:21:42 +02:00
committed by Brandy Carney
parent f060db5fe6
commit 8beeff2c52
15 changed files with 38 additions and 26 deletions

View File

@ -128,7 +128,7 @@ export class IonVirtualScroll {
@ContentChild(VirtualFooter) ftrTmp!: VirtualFooter;
constructor(
private zone: NgZone,
private z: NgZone,
private iterableDiffers: IterableDiffers,
elementRef: ElementRef,
) {
@ -162,7 +162,7 @@ export class IonVirtualScroll {
}
private nodeRender(el: HTMLElement | null, cell: Cell, index: number): HTMLElement {
return this.zone.run(() => {
return this.z.run(() => {
let node: EmbeddedViewRef<VirtualContext>;
if (!el) {
node = this.itmTmp.viewContainer.createEmbeddedView(