I have a parent component where we have a ng-select component with 10 options which i pass into ng-select from a parent. Also i have a checkbox.
my goal is to pass only 1 option when the checkbox is checked. Is there any chance to repeat default select's behavior when having select choosen i click the checkbox it automatically choose the only option according to my if condition.
Here's the example. https://stackblitz.com/edit/angular-8wvjvx?file=src%2Fapp%2Fapp.component.html
Expected result: when i click the checkbox ng-select changes the value according to my if condition;
Actual result: it doesn't. therefore i have a wrong value