title: angularjs filter object by key and ng-model for firebase
body: <p>i have data like this in my firebase:</p>
  
  <pre><code>rootNode:{
      "key1":value1,
      "key2":value2,
  
    }
  </code></pre>
  
  <p>i am doing an ng-repeat when i get the data from async call</p>
  
  <pre><code>  &lt;input type="text" ng-model="searchText"/&gt;
  &lt;ul&gt;
  &lt;li ng-repeat="(key,value) in data |filter:searchText"&gt;{{key}}&lt;/li&gt;
  &lt;ul&gt;
  </code></pre>
  
  <p>The list does show up fine but it is not filtering the serachText.</p>
  
  <p>i want the list to show key1,key2,etc and the filter should work on the keys.</p>
  
  <p>Is something wrong with my data structure?</p>
  
  <p>I can use array of objects but firebase does not link arrays so i am looking for a object based solution </p>