title: Angular custom directive with filter in attribute
body: <p>I would like make angular directive where I use filter on data which are passed as argument.</p>
  
  <p>So something like this:</p>
  
  <p><code>&lt;div class="my-module" data="a in array | orFilter:filter"&gt;&lt;/div&gt;</code></p>
  
  <p>Where "data" is attribute of directive "my-module".
  I looked into ngRepeat source, but they parse ng-repeat argument and then they evaluate them. I can't use ng-repeat because I'm creating new instance of object (Marker for map) from data parameter.</p>
  
  <p>Is it realy so hard? Is possible do this in custom directive and how?</p>
  
  <p>Small example what i want: <a href="http://jsfiddle.net/PjRAr/1/" rel="nofollow">http://jsfiddle.net/PjRAr/1/</a></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I'm trying extend this <a href="https://github.com/nlaplante/angular-google-maps/blob/master/src/angular-google-maps.js" rel="nofollow">map wrapper</a> to render filtered markers.</p>
  
  <p>My potencional solution is holding copy of all markers and visible markers. Add $watch to filter and when filter was changed call <code>$scope.markers = $scope.$eval("allMarkers | orFilter:filter");</code>.</p>
  
  <p>With this solution we need hold two copy of all markers (~500).</p>