I tried to wrap ng-select into a reusable component. Everything works fine except ng-select does not display the default value. Reproducible example here: Stackblitz
How can I get ng-select to display the default/initial value?
Thank you
I tried to wrap ng-select into a reusable component. Everything works fine except ng-select does not display the default value. Reproducible example here: Stackblitz
How can I get ng-select to display the default/initial value?
Thank you
In
select-input.component.html
you made 2 mistakes.First:
[(ngModel)]
they call "banana in a box", so it's always braces inside brackets and not the other way round.Second: the term inside the double quotes must not be surrounded by braces.
Should work now.