Add input ng-model search to group filtering
<p>I'd like to add input ng-model search to my angular application</p>

<pre><code>&lt;div ng-app="app" ng-controller="Main"&gt;
&lt;input ng-model="dddd"&gt;&lt;br&gt;
&lt;div ng-repeat="playerPerTeam in playersToFilter() | filter:filterTeams"&gt;
&lt;b&gt;{{playerPerTeam.team}}&lt;/b&gt;
  &lt;li ng-repeat="player in players | filter:{team: playerPerTeam.team}"&gt;{{player.name}}&lt;/li&gt; 
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>whole code here:
<a href="https://jsfiddle.net/lukasz9999/070ebre7/2/" rel="nofollow">https://jsfiddle.net/lukasz9999/070ebre7/2/</a></p>

<p>The input ng-model should filter player.name</p>

<p>thank you for any tips!!</p>