[Vuejs]-Vue.js v-show directive reactivity

3👍

You can use a computed property for that, then the v-show will react to changes in the store;

computed: {
    showPartialFiles() {
        return (index) => {
            return index <= this.$store.state.numberOfAssignmentCutoff - 1
        }
    }
}

Leave a comment