Questions tagged [ngx-gallery]
14 questions
                    
                    3
                    
            votes
                
                2 answers
            
        Cannot read property 'replace' of undefined while implementing ngx-gallery
I was just trying ngx-gallery in my project with a few urls from google images but every time I get the following error in the console:
ERROR TypeError: Cannot read property 'replace' of undefined
    at…
        
        properchels
        
- 260
 - 2
 - 20
 
                    2
                    
            votes
                
                0 answers
            
        Type NgxGalleryModule does not have' ɵmod 'property
I use angular 11. I typed npm install ngx-gallery --save in the terminal and loaded the ngx-gallery package. Then I made the import process in the module.ts file as stated in the documentation. at first it gave the error on the link.I converted the…
        
        codinges
        
- 61
 - 6
 
                    1
                    
            vote
                
                1 answer
            
        Can't swap images in a ngx-gallery
I'm having a little issue using ngx-gallery Here is the github page and my  stackblitz example.
Scenario - I want my user click a button to swap the images around to the first image in the gallery.
Ex. User clicks button and moves the image from…
        
        chuckd
        
- 13,460
 - 29
 - 152
 - 331
 
                    1
                    
            vote
                
                0 answers
            
        How can I reload or refresh the ngx-gallery thumbnail images after I modify the image array?
I'm using ngx-gallery to display images.
I want to reload the images or have them refreshed in the thumbnail gallery, main image and full page image when I modify the order (ex. swap image 1 and 3 in the image array)
Problem - I can't figure out how…
        
        chuckd
        
- 13,460
 - 29
 - 152
 - 331
 
                    1
                    
            vote
                
                1 answer
            
        kolkov/ngx-gallery not displaying Image
I'm new to Angular, I'm trying to add Image gallery in my project.
Image gallery works if use the hard coded data in this.galleryImages[] but when I pass my subscribe data into this.galleryImages[] it not showing anything. Note I can see my data in…
        
        Muhammad Taimur
        
- 11
 - 3
 
                    1
                    
            vote
                
                2 answers
            
        ngx-gallery not displaying left-right arrow over image in Angular
I am using ngx-gallery to display an image gallery. Although I set the display image arrow property to be true, I can't see the arrows in the image.
I am using Angular 7. This is my gallery.ts file code:
 galleryOptions: NgxGalleryOptions[];
 …
        
        MD.Ismail Hossain apu
        
- 13
 - 1
 - 4
 
                    0
                    
            votes
                
                1 answer
            
        failed to update variable n after returning the collection of values in angular
I am facing an annoying problem. before returning the collection of values in ts file I updated my n values for expect for n=0 (for (let i=n) for display all postedpics(Image) for n=1 for display all postedpics and so on. but after returning, I…
        
        Peter Parker
        
- 57
 - 6
 
                    0
                    
            votes
                
                1 answer
            
        TypeError: this.c[i] is undefined
I am actually trying to show photos using NgxGallery. but when i run the code i found an unexpected error in console. I am using Angular Version 12. here is my code:-
member.component.ts
  ngOnInit(): void {
      this.galleryPosts =…
        
        Peter Parker
        
- 57
 - 6
 
                    0
                    
            votes
                
                1 answer
            
        I am working on angular. I added ngx gallery. I have used foreach loop
I have used this examle
https://www.npmjs.com/package/ngx-gallery
this.galleryImages = [
            {
                small: 'assets/1-small.jpg',
                medium: 'assets/1-medium.jpg',
                big: 'assets/1-big.jpg'
           …
        
    
                    0
                    
            votes
                
                3 answers
            
        I can't install ngx-gallery
my Angular Version:
npm install doesn't solve a thing,
my npm verson is 7.12.0
I tried to run npm install @kolkov/ngx-gallery --save to install ngx-gallery and it gives me the following errors
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to…
        
        armando t
        
- 131
 - 1
 - 4
 - 13
 
                    0
                    
            votes
                
                1 answer
            
        ngx-gallery preview open : get index of image opened and cancel preview opening
I want to open a matdialog with the index of the image, by overriding the previewOpen() method: it should not open the original (big image) preview but opens a matdialog instead (which I already have the code for).
  
        
            
            
                
                    
    
    
        
    
    
                
            
        
     
        Mich
        
- 182
 - 3
 - 6
 - 21
 
                    0
                    
            votes
                
                1 answer
            
        Adding title tags to each image in the grid view using ngx-crystal-gallary
Is there a way to add title tags to each image in the grid view using ngx-crystal-gallary
 
   
        
        SWAPNIL AHER
        
- 11
 - 2
 
                    0
                    
            votes
                
                2 answers
            
        Applying a css class to the first image in my ngx-gallery-9 array
I have this ngx-gallery-9 stackblitz here and I'm trying to figure out how to apply a :first-of-type or nth-child(1) to 'fa-star' icon in the image gallery.
Problem - I want to color just the 1st 'fa-star' font awesome icon in the gallery. So just…
        
        chuckd
        
- 13,460
 - 29
 - 152
 - 331
 
                    0
                    
            votes
                
                1 answer
            
        ngx-gallery width and height options missing
I'm wondering, how to give ngx-gallery (https://github.com/MurhafSousli/ngx-gallery) a new height. It has a fixed value of 500px and changing the parent divs height is not changing anything.
I was looking either for some attribute in the template…
        
        connectedMind
        
- 421
 - 4
 - 17