Design Pattern to create vue component per form controls
Rails MPA + Vue.js
- Rails View: app/views/views/_form.slim
- Vue SFC: components/equipment_form/
- index.js
- EquipmentFormDeviceId.vue
- EquipmentFormLoopback4.vue
- EquipmentFormManagement4.vue
- Vue Store: store/modules/equipmentForm.js
- Create vue component a whole form with Rails MPA
- couldn't use rails validation / url routing
- Rails Way
- From Action URL
- Validation
- Fat store
- business logic goes in the store
- Duplicate set value to pros value for form inputs