Data Source

Most common case is showing data from backend API and with ng-select this is extremely simple since you can bind directly to observable when using angular | async pipe

Selected: {{selectedPersonId}}

You can also set array of objects as items input

Selected: {{selectedPersonId2}}

While array of objects is the most common items source, you may want to set simple array of strings, numbers, booleans

Selected: {{selectedSimpleItem | json}}

If you have simple use case, you can omit items array and bind options directly in html using ng-option component.

{{car.name}} Custom Selected car ID: {{selectedCarId | json}}
Tags

Selected value: {{selectedCompany | json}}

Selected value: {{selectedCompanyCustom | json}}

create new: {{search}}