title: *ngif Comparison date with angular 2
body: <p>I need to compare two date and I used with this method ngif
  But it does not work </p>
  
  <pre><code>   &lt;ion-row *ngFor="let ch of cheval1 "&gt;
         {{ch[0].annee }}
              &lt;ion-col *ngFor="let m of members"&gt;
                &lt;b *ngIf="ch[0].annee == m.Course.date |date : 'yyyy' "&gt;    {{m.Course.date |date : 'yyyy' }}  &lt;/b&gt;
              &lt;/ion-col&gt;
        &lt;/ion-row&gt;
  </code></pre>