ng2-ui / auto-complete

Angular Auto Complete component and directive
http://ng2-ui.github.io/auto-complete/
MIT License
280 stars 124 forks source link

Ignore searching specific attributes #387

Closed b4rtt closed 4 weeks ago

b4rtt commented 4 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', } ];