Filter not filtering ng-repeat

I have a function that gets date input and turns it into time stamp.

$scope.$watch('startDate', function(timestamp) {
 $scope.timestamp = new Date($scope.startDate).getTime();      

I filter my array of timestamps like so:

     <label class="item item-input">
  <span class="input-label">Date</span>
  <input type="date" ng-model="startDate" >
<div ng-model="timestamphope">{{timestamp}}</div>          
   <div ng-repeat="x in result">
   <div ng-repeat="y in x.rates | filter:timestamp ">
       {{y[0] }}

nothing happens. Can anyone help me?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.