我对角度很陌生-请耐心等待:)我想要一个嵌套形式-例如:
name:{
firstname:"",
lastname:"",
}
这是我的“正式”功能:
this.getFormFields = function (categories) {
var meta={
metadata:{
title:"hello",
description:"test123",
}
}
return [{
key: 'name',
type: 'input',
templateOptions: {
label: gettextCatalog.getString('Name'),
required: true
}
},
{
key: 'metadata',
type: 'input',
model:meta.metadata,
templateOptions: {
label: "metadata title",
}
},
{
key: 'clientId',
type: 'input',
templateOptions: {
required:true,
label: "clientId"
}
},
}];
};
那么如何添加嵌套字段呢?