Skip to content

Commit

Permalink
@angular/core migration - migration-v9-dynamic-queries
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kolkov committed Feb 11, 2020
1 parent bde0aff commit 1351c07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class NgxGalleryPreviewComponent implements OnInit, OnDestroy, OnChanges
@Output() previewClose = new EventEmitter();
@Output() activeChange = new EventEmitter<number>();

@ViewChild('previewImage', {static: false}) previewImage: ElementRef;
@ViewChild('previewImage') previewImage: ElementRef;

private isOpen = false;
private timer;
Expand Down
6 changes: 3 additions & 3 deletions projects/gallery/src/lib/ngx-gallery.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1351c07

Please sign in to comment.