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

Is it possible to add owl-carousel inside owl-carousel item? #252

Open
mjsaijem09 opened this issue Jun 6, 2023 · 0 comments
Open

Is it possible to add owl-carousel inside owl-carousel item? #252

mjsaijem09 opened this issue Jun 6, 2023 · 0 comments

Comments

@mjsaijem09
Copy link

mjsaijem09 commented Jun 6, 2023

<owl-carousel-o>
    <ng-template carouselSlide id="shop">
        <app-recommended></app-recommended>
    </ng-template>
    <ng-template carouselSlide id="products">
        <!-- list of products -->
    </ng-template>
    <ng-template carouselSlide id="categories">
        <!-- list of categories -->
    </ng-template>
</owl-carousel-o>


recommended.component.html

<owl-carousel-o>
    <ng-template carouselSlide id="1">
        <!-- product 1 -->
    </ng-template>
    <ng-template carouselSlide id="2">
        <!-- product 2 -->
    </ng-template>
    <ng-template carouselSlide id="3">
        <!-- product 3 -->
    </ng-template>
</owl-carousel-o>

I did this kind of structure for a shop page. The problem is when we go to the recommended section and try to swipe, it will swipe the parent carousel instead of the child carousel which is the recommended section.

So, my question is. Is it possible to perform a nested carousel that when we swipe the child carousel the parent carousel will not swipe or will not do anything?

@mjsaijem09 mjsaijem09 changed the title Is it possible to perform an owl-carousel inside an owl carousel? Is it possible to add carousel inside a carousel? Jun 7, 2023
@mjsaijem09 mjsaijem09 changed the title Is it possible to add carousel inside a carousel? Is it possible to add owl-carousel inside owl-carousel item? Jun 7, 2023
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