Re: Filter items using HTML attributes with Vue.js instead of URL parameter

562 0
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

Hello! Is it possible to filter items by adding the filtering formula inside a Vue.js attribute instead of a URL parameter? Like using v-if or similar…


1 Reply 1

This is an oldie, but in case anyone else is looking for something like this, check on this post and the link to the Github repo within - Vue JS v-if implemented here, might be of use:

<div v-for="element in item">
  <div v-bind:class="">
    <tag v-if=" == 'img'" :is="" v-bind:src="element.content"></tag>
    <tag v-else-if=" !== 'img'" :is="">{{ element.content }}</tag>