The following examples use the select component of Material Extensions, it is a Material form field wrapper of ng-select.
Data Source

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

select person Selected: {{selectedPersonId}}

You can also set array of objects as items input.

select person Selected: {{selectedPersonId2}}

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

select person Selected: {{selectedSimpleItem | json}}

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

Select car @for (car of cars; track car) { {{car.name}} } Custom Selected car ID: {{selectedCarId | json}}
Tags Select item

Selected value: {{selectedCompany | json}}

Select item

Selected value: {{selectedCompanyCustom | json}}

Select item create new: {{search}} Select item
Select in dialog

Test ng-select in a dialog.