Swiper Element Virtual with Angular: How to render custom angular component for slides? #7680
Unanswered
sergiomilici
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to render my own component to represent a slide. Right now, on virtual mode, the slides array must be string array. If I pass an object, it's rendered as
'[object Object]'
and the only want to show my custom html, is to have on each slide of the slides array, the HTML in a string, which is not maintainable and I can't do anything with it.I have an array of objects like:
{ id: string; title:string; amount: number }
Each object represents a slide and I want to render a slide receiving this object.
Without virtual mode, I can render the
swiper-slide
with my own content, but in virtual mode, that's not possible, so I can't render any angular component.How can you render your own slide component receiving an object as a slide when using Swiper Element with Virtual prop?
Beta Was this translation helpful? Give feedback.
All reactions