Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider shows only thumbnail image #166

Open
troncomputers opened this issue Sep 10, 2022 · 0 comments
Open

Slider shows only thumbnail image #166

troncomputers opened this issue Sep 10, 2022 · 0 comments

Comments

@troncomputers
Copy link

troncomputers commented Sep 10, 2022

Hi.
Can someone tell what I did wrong? Slider is not showing "normal" images, only thumbnails. If I remove thumbImage the slider is blank. with some borders only.

  imageObject: Array<any> = [
    {
      image: 'assets/banner/baner1.jpg',
      thumbImage: 'assets/banner/baner1.jpg',
    },
    {
      image: 'assets/banner/baner2.jpg',
      thumbImage: 'assets/banner/baner2.jpg',
    },
    {
      image: 'assets/banner/baner3.png',
      thumbImage: 'assets/banner/baner3.png',
    }
  ];
<div class="banners-container">
  <ng-image-slider [images]="imageObject" [infinite]="true" [autoSlide]="5" [showArrow]="false" [imageSize]="{width: '100%', height: 200}"></ng-image-slider>
</div>

ng_slider

     _                      _                 ____ _     ___ 
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | | 
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | | 
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 14.2.2
Node: 16.17.0
Package Manager: npm 8.15.0
OS: win32 x64

Angular: 14.2.1
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic        
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.2
@angular-devkit/build-angular   14.2.2
@angular-devkit/core            14.2.2
@angular-devkit/schematics      14.2.2
@angular/cli                    14.2.2
@angular/flex-layout            14.0.0-beta.40
@schematics/angular             14.2.2
rxjs                            7.5.6
typescript                      4.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant