0

Im using ngx-owl-carousel for the slider so far everything is working fine but the problem is when the list contain items it shows arrows but if there is no item in the list it still shows arrows for left and right navigation.

HTML

<owl-carousel [options]="carouselOptions" [items]="store" [carouselClasses]="['owl-theme', 'row']" >
<div class="item" *ngFor="let store of store;let i= index">
<div class=" col-lg-12  select-store-box">
{{store.name}}
</div>

3
  • 1
    what is this let store of store? I hope it's a typo
    – Reza
    Jul 4, 2019 at 20:50
  • store is actually name of the object that contains the data.
    – Random
    Jul 4, 2019 at 20:55
  • you can't say let a of a, it should be let item of array
    – Reza
    Jul 4, 2019 at 21:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.