ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 122 forks source link

Ignore searching specific attributes #387

Open b4rtt opened 3 years ago

b4rtt commented 3 years ago

Is somehow possible ignore searching in specific attributes? For example I want to ignore ID. When I write to textbox "112", it founds both objects, but it should get only object ID 2. It should search only in "name" attribute. ID should be ignored.

public continents = [{ id: 112, name: 'Asia', }, { id: 2, name: '112 Africa', } ];