'Angular Material 2 autocomplete and select combined?
I want to make an input form with Angular Material 2, to search through items in an inventory. Therefore I would like an autocomplete-like input field where you can search through your inventory.
But the problem is (as I understand) that if you e.g. type in something which is not in your inventory, the field will still accept it. Whereas the select field has the capability of only offering the listed options but is not searchable.
I thought of adding a validator on the autocomplete, but as far as I know, it is not possible to validate against an array. Does anybody know how to solve this problem? It seems to me like a pretty usual task, but I haven't come across any similar posts.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
