Hi All,
I’ve a list of objects as mentioned with ‘listedBranches1’. I’ve another field with options. So, whenever option value gets changed, I want the chosen value to be wiped off in the field ‘ngModel.selectedbranch’. However, though I initialize ngModel with empty object, value is not getting wiped off in ’ ngModel.selectedbranch/ field.
listedBranches1 :-
me.listedBranches1 = [{
displayName: ‘XXXX’,
id: 1
}, {
displayName: ‘YYYY’,
id: 2
}
];
where ‘me’ is control variable.
Here is ngModel.selectedbranch: