Code breaks when I upgrade my angular from 8.0 to 9.0
ashismo opened this issue · comments
When I upgraded my angular from 8.0 to 9.0, getting the below error. Can you please fix this?
ERROR in node_modules/ngx-gallery/ngx-gallery-helper.service.d.ts:1:22 - error TS2724: Module '"node_modules/@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?
Can you please fix this?
Hi! Try to use this version for Angular 8, 9.
https://www.npmjs.com/package/@kolkov/ngx-gallery
Thanks for your reply. I have used this and the same has been broken. Please see the below image.
I have the below settings. Looks like the height is not working
this.galleryOptions = [
{
width: '100%',
height: '300px',
thumbnailsColumns: 4,
imageAnimation: NgxGalleryAnimation.Slide,
previewZoom: true,
previewZoomMax: 4,
previewZoomStep: 0.4,
imageSwipe: true,
previewRotate: true,
imageDescription: true,
fullscreenIcon: 'fas fa-compress',
previewFullscreen: true,
imageArrowsAutoHide: true,
preview: true,
actions: this.gallaryActions
},
// max-width 800
{
breakpoint: 800,
width: '100%',
height: '300px',
imagePercent: 80,
thumbnailsPercent: 20,
thumbnailsMargin: 20,
thumbnailMargin: 20,
previewZoom: true,
preview: true,
actions: this.gallaryActions
},
// max-width 400
{
breakpoint: 400,
width: '100%',
height: '300px',
fullWidth: true,
imageDescription: true,
preview: true,
actions: this.gallaryActions
}
];
Thanks for your reply. I have used this and the same has been broken. Please see the below image.
I have the below settings. Looks like the height is not workingthis.galleryOptions = [
{
width: '100%',
height: '300px',
thumbnailsColumns: 4,
imageAnimation: NgxGalleryAnimation.Slide,
previewZoom: true,
previewZoomMax: 4,
previewZoomStep: 0.4,
imageSwipe: true,
previewRotate: true,
imageDescription: true,
fullscreenIcon: 'fas fa-compress',
previewFullscreen: true,
imageArrowsAutoHide: true,
preview: true,
actions: this.gallaryActions
},
// max-width 800
{
breakpoint: 800,
width: '100%',
height: '300px',
imagePercent: 80,
thumbnailsPercent: 20,
thumbnailsMargin: 20,
thumbnailMargin: 20,
previewZoom: true,
preview: true,
actions: this.gallaryActions
},
// max-width 400
{
breakpoint: 400,
width: '100%',
height: '300px',
fullWidth: true,
imageDescription: true,
preview: true,
actions: this.gallaryActions
}
];
Do you have this class?
kolkov/ngx-gallery#8
https://github.com/kolkov/ngx-gallery
this is not working with dynamic binding with api post response
static binding is working fine
it is not working with .webp format