Struggling with a code snippet in vuetify, facing issues:
<template>
..... {{ countf(options[1], options[2], options[3], options[4], options[5]) }} ......
</template>
<script lang="ts">
export default Vue.extend({
data () {
return {
count: 1,
str: ''
}
},
methods: {
countf(a: any, b: any, c: any, d: any, e: any) {
this.str = a.title;
if (this.str.indexOf("Lapel") > -1) {
this.count++;
}
return "Count = " + this.count;
}
}
})
</script>
Seeking assistance to display Count = 2
on the webpage. The issue persists as navigating to the page causes it to hang. Any solutions are appreciated.