Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- almost 600 values
- }
- },
- {
- ‘item’: {
- ‘term’: ‘2’,
- ‘timing’:‘B’
- ‘steps’: [{}],
- ‘parameter’: [{}]
- ....
- ....
- almost 600 values
- }
- }
- ]
- ///In old dojo the code was like
- for (c = 0; c < itemList.length; c++) {
- item=itemList[c];
- var itemWatch = item.watch(function(name,oldVal,newVal) {
- }
- }
- computed:{
- clonedItems: function(){
- return JSON.parse(JSON.stringify(this.itemList));
- }
- },
- watch:{
- clonedItems:{
- deep: true,
- handler: function (val, oldVal) {
- This I tried which is working fine. But to get to know what value is changed of this will be heavy computation.this array can be of 100 items and each item have 600 items where we have arrays as well.
- Please guide what is the best way to achieve the similar functionality what we have
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement