image src bind error using images in static i.e public folder #9570
Answered
by
bagladivyang03
bagladivyang03
asked this question in
CLI - PWA mode
-
<div v-for="(a,index) in card_data" :key="index" class=" xs:tw-col-span-3 md:tw-col-span-1 xl:tw-col-span-1 ">
<q-card class="bg-grey-1">
<q-card-section class="tw-border-b-2 tw-border-gray-800 bg-grey-1">
<div class="xs:tw-text-lg md:tw-text-xs xl:tw-text-2xl tw-text-center tw-text-gray-800 tw-font-sans tw-font-semibold">{{a.name}}</div>
</q-card-section>
<q-carousel
animated
class="xs:tw-h-40 lg:tw-h-64"
v-model="a.slider_d"
autoplay
navigation
navigation-position="right"
ref="carousel"
control-color="grey-8"
infinite
>
<q-carousel-slide v-for="(img,index) in a.img_arr" :key="index" :name="index" class="q-pa-none">
<img :src="img" class="fit" style="">
</q-carousel-slide>
</q-carousel>
<a href="https://incentius.com/" target="_blank">
<q-card-section class="tw-rounded-lg bg-grey-1 tw-cursor-pointer" >
<div class="xs:tw-text-sm xl:tw-text-xl tw-font-normal tw-my-2">Overview</div>
<span class="xs:tw-text-xs xl:tw-text-sm">{{a.overview}}</span>
</q-card-section>
</a>
</q-card>
</div> This is my above code where I have tried binding by iterating over an array Below is the array on which I m iterating
and I m getting this error below Can anyone pls tell how to bind the images in quasar I saw on the documentation and add all the images in one folder in public folder. |
Beta Was this translation helpful? Give feedback.
Answered by
bagladivyang03
Jun 5, 2021
Replies: 1 comment 2 replies
-
@rstoenescu Can u pls tell how to solve this. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bagladivyang03
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@rstoenescu Can u pls tell how to solve this.