You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, you haven't made a mistake. Currently I haven't got that supported, but it's on the list of things to do! I'll try and get that released as soon as possible. In the meantime, something you can do, which isn't totally ideal, but does work, is something like:
model: {
'foo.first': '',
'foo.last': ''
}
and then use something like flat to expand it. It's not ideal, but that's the temporary fix.
I'm trying to bind fields to nested properties of the model using s simple example which you can reproduce by following these steps
vue init webpack vue-formly-example
. When prompted, don't install eslintnpm install vue-formly && npm install vue-formly-bootstrap
App.vue
with the followingnpm run dev
and enter some data in the fields, you should then see something like thisAs you can see the model keys are incorrect. Is it the case the field values can only be bound to the root of the model, or have I made a mistake?
The text was updated successfully, but these errors were encountered: