From 1351c0757f2eeca3d9a063dcfbee933b1b432596 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 11 Feb 2020 22:51:13 +0300 Subject: [PATCH] @angular/core migration - migration-v9-dynamic-queries Static flag migration. Removes the `static` flag from dynamic queries. As of Angular 9, the "static" flag defaults to false and is no longer required for your view and content queries. Read more about this here: https://v9.angular.io/guide/migration-dynamic-flag --- .../ngx-gallery-preview/ngx-gallery-preview.component.ts | 2 +- projects/gallery/src/lib/ngx-gallery.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.ts b/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.ts index 2f55fb85..44ecece8 100644 --- a/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.ts +++ b/projects/gallery/src/lib/ngx-gallery-preview/ngx-gallery-preview.component.ts @@ -74,7 +74,7 @@ export class NgxGalleryPreviewComponent implements OnInit, OnDestroy, OnChanges @Output() previewClose = new EventEmitter(); @Output() activeChange = new EventEmitter(); - @ViewChild('previewImage', {static: false}) previewImage: ElementRef; + @ViewChild('previewImage') previewImage: ElementRef; private isOpen = false; private timer; diff --git a/projects/gallery/src/lib/ngx-gallery.component.ts b/projects/gallery/src/lib/ngx-gallery.component.ts index 5e6a14af..69c6b0d7 100644 --- a/projects/gallery/src/lib/ngx-gallery.component.ts +++ b/projects/gallery/src/lib/ngx-gallery.component.ts @@ -57,9 +57,9 @@ export class NgxGalleryComponent implements OnInit, DoCheck, AfterViewInit { private prevBreakpoint: number | undefined = undefined; private fullWidthTimeout: any; - @ViewChild(NgxGalleryPreviewComponent, {static: false}) preview: NgxGalleryPreviewComponent; - @ViewChild(NgxGalleryImageComponent, {static: false}) image: NgxGalleryImageComponent; - @ViewChild(NgxGalleryThumbnailsComponent, {static: false}) thumbnails: NgxGalleryThumbnailsComponent; + @ViewChild(NgxGalleryPreviewComponent) preview: NgxGalleryPreviewComponent; + @ViewChild(NgxGalleryImageComponent) image: NgxGalleryImageComponent; + @ViewChild(NgxGalleryThumbnailsComponent) thumbnails: NgxGalleryThumbnailsComponent; @HostBinding('style.width') width: string; @HostBinding('style.height') height: string;