I'm currently working on a Vue.js code, but I'm facing an issue where the template isn't updating when new data is added to the input text. My goal is for the list to update when the @click event occurs.
methods: {
addModule:function(){
var size = Object.keys( this.modules ).length;
this.modules[size] = {
enumerate: '1.1',
name: 'test',
description: 'test d',
type: 'module',
criteria: {}
};
console.log(this.modules);
}
}