Compare dates in ng-repeat
<p>Here is my problem, i would like to compare 2 dates and display every date for which my <code>ng-if</code> is true. But this don't work because when only one of my <code>user.created_at</code> is inferior to <code>time</code>  my <code>ng-if</code>return false and nothing is display. </p>

<pre><code>&lt;ul ng-repeat="user in userticket track by $index" ng-if="user.created_at &gt; time" &gt;
       &lt;li class="row ticketlist"&gt;{{user.created_at | amDateFormat:'YYYY.MM.DD'}}&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>and in my controller:</p>

<pre><code>$scope.time = "2015-06";
</code></pre>