title: ng-model value is not getting passed through ng-repeat
body: <p>I am trying to have custom filter to filter date range, have kept the text field for getting the date from user in popver. It's not working, whereas I have another textbox to get name in the header bar and able to get the value in <code>ng-repeat</code> for default filter.</p>
  
  <p>What did I miss here?</p>
  
  <p><strong>Date Field in Popver</strong> </p>
  
  <p>Which is not under any controller, it is in popver</p>
  
  <pre><code>  &lt;label class=" item-input"&gt;
      &lt;span class="input-label" style="width:50%;font-size:14px;"&gt;From Date&lt;/span&gt;
      &lt;input type="text" ng-model="fromDate"/&gt;
    &lt;/label&gt;
  </code></pre>
  
  <p><strong>HTML - ng-repeat</strong></p>
  
  <pre><code>    &lt;div ng-repeat="item in Items | filter: custname |  filter: applyDateFilter(fromDate, toDate)"&gt;
          &lt;div class="row item wrap"&gt;
            &lt;div class="col col-95"&gt;
              &lt;ion-checkbox ng-model="item.Selected"&gt;
                &lt;div class="row"&gt;
                  &lt;div class="col col-67"&gt;
                    &lt;p&gt;{{item.name}}&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class="col col-33 right"&gt;
                    &lt;p&gt;{{item.order_date | datetimeFormat }}&lt;/p&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/ion-checkbox&gt;
            &lt;/div&gt;
          &lt;/div&gt; 
        &lt;/div&gt;
  </code></pre>
  
  <p><strong>Filter</strong></p>
  
  <pre><code> .controller("dbController", function($scope, $rootScope) {
       $scope.applyDateFilter = function(from, to) {
          return function(items, from, to) {
              console.log(items);
              console.log('from '+from);
              console.log('to '+to);
              console.log('fromDate '+$scope.fromDate);
              console.log('toDate '+toDate);
  
              var result = [];   
  
              if(from == 0 &amp;&amp; to == 0)
                return items;
  
              if(from != '' &amp;&amp; to != ''){
                var df = parseDate(from);
                var dt = parseDate(to);
  
                for (var i=0; i&lt;items.length; i++){
                    var tf = new Date(items[i].order_date * 1000);
                    if (tf &gt;= df &amp;&amp; tf &lt;= dt)  {
                        result.push(items[i]);
                    }
                }
              }            
              return result;
          };
        }; 
    });
  </code></pre>
  
  <p><strong>Also tried with filter by passing like</strong> <em>datetime:fromDate:toDate</em></p>
  
  <pre><code>.filter('datetime', function($filter){
     return function(items, fromDate, toDate){ 
          from = fromDate;
          to = toDate;
          var result = []; 
          if(from == 0 &amp;&amp; to == 0)
            return items;
          if(from != '' &amp;&amp; to != ''){
            var df = parseDate(from);
            var dt = parseDate(to);
            for (var i=0; i&lt;items.length; i++){
                var tf = new Date(items[i].order_date * 1000);
                if (tf &gt;= df &amp;&amp; tf &lt;= dt)  {
                    result.push(items[i]);
                }
            }
          }            
          return result;
      };
  });
  </code></pre>