question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change slides by .to()

See original GitHub issue

(click)=“owlCar.to(‘id’)” doesn’t change slide is there any other way?

<owl-carousel-o [options]="customOptions" #owlCar>
        <ng-container *ngFor="let image of product.images; let i = index">
            <ng-template carouselSlide [id]="product.id + i">
                <div class="gallery-item">
                    <a><img [src]="image" alt="Product"></a>
                </div>
            </ng-template>
        </ng-container>
    </owl-carousel-o> 
    <ul class="product-thumbnails">
        <li class="" *ngFor="let image of product.images | slice:0:5 ; let j = index">
            <a (click)="owlCar.to(product.id + j)">
                <img [src]="image" alt="Product.title"></a>
        </li>
    </ul>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mahsaml90commented, Dec 11, 2018

It works well . Thank you for your response.

1reaction
vitalii-andriiovskyicommented, Dec 10, 2018

I removed that condition from the method to(id) and published new version v1.0.4. This is for Angular 7.

Now the method will work in the case of disabling both nav and dots.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add, change, or remove transitions between slides
Add slide transitions to bring your presentation to life · Select the slide you want to add a transition to. · Select the...
Read more >
Update all of your PowerPoint Slides at Once with Slide Master
Using Slide Master in PowerPoint lets you make quick changes like changing fonts, font colors. You can also use Slide Master to add...
Read more >
3 Ways to Resize Your Slides in PowerPoint
The fastest way to change the slide ratio is to go to the design tab and clicking on slide size. Once you pick...
Read more >
How to Change Slide Layout in MS PowerPoint - GeeksforGeeks
Microsoft PowerPoint has a special feature called slide layout in which you can select different slide layout format in it. A slide layout...
Read more >
Add, delete & organize slides - Google Docs Editors Help
You can change the order of slides in a presentation: On your computer, open a presentation in Google Slides. At the left, click...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found