title: md-autocomplete - remove selected items in suggestion
body: <p>Im trying to remove an <code>md-item</code> in suggestion when the user selected an item and is marked as favorite. To clarify the question here is the structure below.</p>
  
  <p>Supposing that we have this structure of <code>states</code>.</p>
  
  <pre><code>function loadAll() {
  
        var allStates = [
            {
               display : Alabama,
               value : alabama,
               is_favorite : false
            },
            {
               display : Alaska,
               value : alaska,
               is_favorite : false
            },
            {
               display : California,
               value : california,
               is_favorite : false
            },
            {
               display : Colorado,
               value : colorado,
               is_favorite : false
            },
            {
               display : Florida,
               value : florida,
               is_favorite : false
            },
            {
               display : Georgia,
               value : georgia,
               is_favorite : false
            },
        ];
  
        return allStates;
  }
  </code></pre>
  
  <p>This is what i did for marking the state as favorite when the user selected the object i put it on the function <code>md-selected-item-change</code>.</p>
  
  <pre><code>function selectedItemChange(object) {
      if (object) {
          object.is_favorite = true;
      }
  }
  </code></pre>
  
  <p>Now it is possible to alter the <code>createFilterFor()</code> to exclude from the results the states which has <code>is_favorite == true</code> after selecting a particular state?</p>
  
  <pre><code>function createFilterFor(query) {
    var lowercaseQuery = angular.lowercase(query);
  
    return function filterFn(state) {
      return (state.value.indexOf(lowercaseQuery) === 0);
    };
  
  }
  </code></pre>
  
  <p>This is what ive'd tried so far but it doesn't render the correct result.</p>
  
  <pre><code>return (state.value.indexOf(lowercaseQuery) === 0 &amp;&amp; state.is_favorite == false);
  </code></pre>
  
  <blockquote>
    <p>UPDATE</p>
  </blockquote>
  
  <p><a href="http://codepen.io/badcoder28/pen/ZLYLZG?editors=1000" rel="nofollow noreferrer">CODEPEN DEMO</a></p>