我是我的 Angular 应用程序,我需要从我的应用程序(组件或服务)内部的一个函数中设置多复选框字段的选项。我不知道如何工作templateOptions.options
,我应该如何写值?
这是我的 json 代码:
{
"key": "clientIds",
"type": "multicheckbox",
"className": "flex-1",
"templateOptions": {
"label": "Clients",
"required": true
},
"expressionProperties": {
"templateOptions.options": "??????" // <-- here to bind with a component or shared service method
}
}