laracasts / Vue-Forms

https://laracasts.com/series/learn-vue-2-step-by-step/episodes/19
396 stars 204 forks source link

Return this.originalData instead of loop #21

Closed simplenotezy closed 4 years ago

simplenotezy commented 4 years ago

Couldn't you just do return this.originalData;

Instead of looping through and assign fields to a new object?

https://github.com/laracasts/Vue-Forms/blob/9ccf969dfda9ca6dcc1026699315188e651bafb8/public/js/app.js#L88

simplenotezy commented 4 years ago

No you cant, otherwise fields will be empty.