首页 > 解决方案 > 从下拉列表中获取旧值和新值 | 角2

问题描述

我如何从 NG-SELECT 中获取 oldSelected 值和 NewSelected 值;

<ng-select
                      [(ngModel)] = "attribute[attribute.id]"
                      [items]="typeWiseTarget" 
                      placeholder="Attribute"              
                      bindLabel="name" bindValue="id">
                      </ng-select>

如果用户选择值 A,然后他第二次选择值 B,我怎样才能获得旧的选择值,即 A

标签: javascriptangulartypescriptangular6

解决方案


推荐阅读