【发布时间】:2017-06-06 14:54:17
【问题描述】:
我目前正在使用 angular-schema-form-dynamic-select,我的要求是根据所选国家/地区选择州。我将数据存储在数据库中,例如 country -> state -> city。谁能帮我解决这个问题?
这是我的表格:
[
{
"key": "country",
"type": "strapselect",
"placeholder":"country",
"options": {
"httpGet": {
"url": "/countries"
},
"map": { "valueProperty": "readonlyProperties.id", "nameProperty":"name" }
}
},
{
"key": "state",
"type": "strapselect",
"placeholder":"state",
"options": {
"httpGet": {
"url": "/states"
},
"map": { "valueProperty": "readonlyProperties.id", "nameProperty":"name" }
}
},
{
"key": "city",
"type": "strapselect",
"placeholder":"city",
"options": {
"httpGet": {
"url": "/cities"
},
"map": { "valueProperty": "readonlyProperties.id", "nameProperty":"name" }
}
}
]
【问题讨论】:
-
你能显示一些相关代码吗
标签: angularjs jsonschema angular-schema-form