[Vuejs]-Vue.js dynamic array in template not working

0👍

Updated

this.operations.push('UPDATED : '); will make component updated hooks run infinite. Please try removing it.

And there is a best practice about immutable and reactive . Reference of this.operations is not changed.

You should use

this.operations = [...this.operations, 'CREATED : ']

instead of

this.operations.push('CREATED : ');

or

this.operations = this.operations.concat(['CREATED :'])

Leave a comment