title: Actively searching for a username in meteor ionic with angular
body: <p>I'm trying to get meteor to search for a username as the user types. For example typing in "a" would give users "admin", "adam" and "apple". "ad" would give "admin", "adam" etc..    </p>
  
  <p>In the controller I have:</p>
  
  <pre><code>this.helpers({
    users() {
      return Meteor.users.find({username:this.searchText});
    }
  });
  </code></pre>
  
  <p>and in the template I have </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ion-content&gt;
  &lt;div class="new-chat.search"&gt;
    &lt;label class="item item-input"&gt;
          &lt;input ng-model="searchText" type="search" placeholder="Enter a username"&gt;
        &lt;/label&gt;
   &lt;/div&gt;
      &lt;div class="list"&gt;
        &lt;a ng-repeat="user in chat.users" ng-click="chat.newChat(user._id)" class="item"&gt;
          &lt;h2&gt;{{ user.username }}&lt;/h2&gt;
    &lt;h3&gt;{{ user.profile.name }}&lt;/h3&gt;
        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/ion-content&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If "this.searchText" is chaneged to 'admin' it will return admin.</p>
  
  <p>Anyone know what I need to do to get this working?</p>