Need support with for-loop


#1

hey Tyler.,
on

I remain unable to work with

{{#if hideOnDesktop}}hideOnDesktop{{/if}}

And I guess the reason is that I am not using

{{#each items}}

but instead my mod is using

v-for=“item in items”

I played around a little bit, but I remain unable to find a solution

any support is highly appreciated

https://anymod.com/home


#2

Since it’s using Vue, you can use that syntax if you want:

<a class="nav-link js-scroll-trigger"
  :class="{ 'hideOn-Desktop': item.hideOnDesktop }"
  :href="item.link" 
  v-text="item.label"
  :target="item.target">
</a>

#3

Exellent! Thank you especially for your additional Code-specification !!! That made all the difference. I would not have made it otherwiese. I guess it is time for me to take some time off and learn the Fundamentals of vue :wink: Again, thank you very much Tyler