javascript - 从下拉列表中获取旧值和新值 | 角2
问题描述
我如何从 NG-SELECT 中获取 oldSelected 值和 NewSelected 值;
<ng-select
[(ngModel)] = "attribute[attribute.id]"
[items]="typeWiseTarget"
placeholder="Attribute"
bindLabel="name" bindValue="id">
</ng-select>
如果用户选择值 A,然后他第二次选择值 B,我怎样才能获得旧的选择值,即 A
解决方案
推荐阅读
- java - Sonar-Jacoco report hiding code coverage in list view
- python - After adding Python to my windows PATH Powershell stopped recognizing simple commands like cmd and help. Does anyone know how to fix this?
- c++ - ways for Direct2D and Direct3D Interoperability
- java - Some parser.getAttributeValue(integer).equals(String) are getting ignored when I loop through XML using java in android studio
- vb.net - Windows form program to accept 3 integer angles as input and checks whether it is a valid triangle by checking the sum against 180 degrees
- mule4 - How to migrate server group mule applications to cluster in mule 4?
- javascript - 我如何在反应中将名字/姓氏更改为名字/姓氏?问题是它来自后端
- go - 在 SAML 中,需要在客户端和服务提供商中执行哪些操作才能注销?
- python - 如果目录名称已经存在,如何使用python批量删除部分文件夹名称并合并内容?
- python - 从名称字符串中删除特定数字和字符