I have a very simple search engine in my web application with AngularJS, that simple:
<input type="search" id="search" maxlength=26 placeholder="Filtrar noticias..." ng-model="search.title">
<li ng-repeat="item in itemData | orderBy:'-order' | filter:search as results"></li>
<span ng-if="results.length==0">No hay resultados...</span>
When writing in the input, the items are automatically filtered by titles, how can I filter them by pressing enter on the pc or on mobile devices, for example, by pressing the search button on the keyboard and remaining filtering elements even if I erase what I wrote? I would greatly appreciate the help, for the moment I do not know much about JavaScript and AngularJS.
I am currently using AngularJS 1.5.7