Is it possible to programmatically clear the selection of an ng-select dropdown? I\'m wanting the equivalent behaviour of clicking the clear icon, but triggered programmatically
Clearing the selection can be achieved by simply setting the ngModel value to null. In the case of the above example:
this.selectedCalculation = null;
This isn't exactly the same as clicking the clear icon, as it doesn't trigger the (clear) output event, but it was sufficient for my needs.
(clear)