Looking at some Angular code that includes the use of ui-select. Every instance seems to follow the same syntax for the ui-select-choice value, which is structured like this:
<ui-select-choice repeat="value in array | filter:$select.search">
<span ng-bind-html="trustAsHtml(value.name | highlight:$select.search))">
</ui-select-choice>
While I understand that the values are passed through a filter, I'm unsure about the purpose of $select.search and how the filter actually functions. The trustAsHtml function is also unfamiliar to me, but I haven't delved into researching it yet so it's not my primary concern.
If anyone could break down how this logic operates, I would greatly appreciate it!