angular - formControlName 不保存选择中的所有值
问题描述
formControlName 仅在我的数据库中设置姓氏。如何保存姓名和姓氏?
<mat-select formControlName="date_customer">
<mat-option *ngFor="let customer of customers" [value]="customer.forname && ' ' && customer.surname">{{ customer.forname }} {{ customer.surname }}</mat-option>
</mat-select>
解决方案
推荐阅读
- ember.js - 在 Ember 中使用查询参数实现 JSONAPI 过滤器的推荐模式?
- nlp - StanfordCoreNLP newlineIsSentenceBreak 不删除 \n
- flowtype - 无法将对象文字分配给`...`,因为在对象文字[1]中缺少属性`...`但存在于`...`中
- javascript - Microsoft Graph API 使用 proxyAddresses 上的筛选器查询用户
- java - Waffle Java 客户端:如何使用特定域用户对 Web 服务进行身份验证
- lambda - 在 kotlin 中突破 lambda
- python - Python,BeautifulSoup,re:如何将提取的文本从网络转换为字典?
- c# - Azure keyvault 值未进入我的代码
- loops - 在动画循环中旋转自定义对象
- javascript - 带线条的柱形图 - 组合图自定义