I am currently working with a JSON object that contains nested objects and I need to iterate over them to extract data. Everything is functioning correctly, but now I want to implement a search/filter feature where the search is performed on the second level of the nested for loop. I have made some progress with it, but I am not receiving any data in return. Here is an example:
In the HelloWorld component, you will see where the search/filter functionality is being applied. However, it seems to stop outputting data after passing through the searchFilter method.
To disable the search/filter and get everything to display again, modify line #6
as follows:
from:
<div class="contentSingle" v-for="(c, i) in searchFilter" :key="i">
to:
<div class="contentSingle" v-for="(c, i) in cont" :key="i">
If anyone has suggestions on what can be done to resolve this issue, please let me know. My goal is to filter by the elements within each content
inside the main data object. The data object can be found within the FauxData/dataContent.js
directory.
Thank you!
-S