Skip to content

lesson 14

Rati Wannapanop edited this page May 24, 2017 · 3 revisions

Moving Field Definitions to another file

As we go along for quite sometime, there is one thing that we should do with the Field Definition. We should move it out into its own file!

In a more complex project that have a lot of fields, the filed definition will get quite lengthy and keeping in a separate file is often more suitable as it will make our MyVuetable component less clutter.

So, let's begin by creating a new file inside components directory called FieldDefs.js.

Clone this wiki locally