title: Angular - Filtering an ng-repeat by Item.User._id
body: <p>Im trying to filter an ng-repeat by an id value.</p>
  
  <pre><code>$scope.filter = $stateParams.id;  --&gt; 56a1832a36dc3d0e00c7aa3f
  </code></pre>
  
  <p>Heres the model for the Item Object with relevant vlues</p>
  
  <pre><code>var ItemSchema = new Schema({
  
    title: {
      type: String,
      maxlength: 150
    }
    user: {
      type: Schema.ObjectId,
      ref: 'User'
    }
  
  });
  </code></pre>
  
  <p>How exactly do i filter the Items by the user._id ?</p>
  
  <p>My attempt which is giving no results.</p>
  
  <pre><code>&lt;div ng-repeat="saving in savings| filter: {user : 'filter'}"&gt;
  </code></pre>