title: Global search using filters and services
body: <p>My purpose is to create a global search toolbar, where I can search any data in the app.</p>
  
  <p>I'm already using filters to search a single type of resource, like :</p>
  
  <pre><code>&lt;div ng-repeat="project in projects | filter:projectFilter"&gt;
   /* TODO template */
  &lt;/div&gt;
  </code></pre>
  
  <p>The projects array is bound to the <strong>$scope</strong> and the data is fetched by a <strong>ProjectsService</strong>.</p>
  
  <p>I want to search for any data in the application like projects, customers, etc..<br>
  I was thinking about an input and a select tag. The select choose the resource i need to filter and the input the resource name.</p>
  
  <p>Is there a way to dinamically change the <strong>projects</strong> array into something else at runtime? </p>