Giter Site home page Giter Site logo

ngx-splide's People

Contributors

ferares avatar wiistriker avatar zns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ngx-splide's Issues

Importing to lazy-loaded module

Had found such an issue:
Trying to use that package in lazy-loaded module, error occurred:
"BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead."
Changing "BrowserModule" to "CommonModule" fixed that.
I suppose it could be useful to make that change in common package.
Thx.

Support Angular 14

The current version compiled against v10 it would be great to bump it to v14

How do I use the sync function?

How to use the sync functionality?
https://splidejs.com/guides/apis/#sync

Currently I have two Splide Sliders that need to be synced - one big with fullscreen images and one small with thumbnails used as navigation.

<splide (onInit)="onMainSplideInit($event)" class="splide mainSlider" [options]="{type: 'slide',pagination: false,arrows: false,drag: true,lazyLoad: 'nearby',preloadPages: 3}"> <splide-slide *ngFor="let media of data.media"> <div> // big img </div> </splide-slide> </splide> <splide (onInit)="onSecondarySplideInit($event)" class="splide secondarySlider" [options]="{ rewind: true, isNavigation: true, gap: 5, focus: 'center', pagination: false, cover: true, lazyLoad: 'nearby', preloadPages: 20, fixedWidth: 60, fixedHeight: 60 }"> <splide-slide *ngFor="let media of data.media"> <div> //thumbnail </div> </splide-slide> </splide>

and in the inInit functions i tried to sync them:

`onMainSplideInit = (splide) => {
this.mainSplide = splide;
}

onSecondarySplideInit = (splide) => {
this.secondarySplide = splide;

this.mainSplide.sync(this.secondarySplide).mount();

}`

this works partial - when I move the mainSlider the secondarySlider moves too, but not in the other direction...

Is there a proper way to implement this?

Angular Ivy Support

Hello @wiistriker - Thanks for the great library. I am using this library and everything works as expected. Although, you can add support for Ivy in this library as it gives a warning while we do ng serve after installing this library.

Looking forward to it.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.