title: AngularJS scope variable for object in filter
body: <p>I'm trying to change which property I'm filtering by assigning the property name to a variable, but it's not working. Is there a way to accomplish this without writing my own filter? <a href="http://codepen.io/alex-wilmer/pen/gbWqYN?editors=101" rel="nofollow">codepen</a></p>
  
  <pre><code>&lt;div ng-app="app" ng-controller="main as m"&gt;
    &lt;input ng-model="keyword"/&gt;
    &lt;p&gt;Property: {{m.property}}&lt;/p&gt; &lt;!-- resolves to 'name' --&gt;
    &lt;!-- does not work--&gt;
    &lt;div ng-repeat="o in m.objects | filter:{m.property:keyword}"&gt;
      {{o.name}}
    &lt;/div&gt;
    &lt;hr/&gt;
    &lt;!-- works--&gt;
    &lt;div ng-repeat="o in m.objects | filter:{name:keyword}"&gt;
      {{o.name}}
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>