title: Angular 2: if attr.title in html == array in component
body: <pre><code>&lt;div class="kalender"&gt;
      &lt;table *ngIf="datoer"&gt;
          &lt;tr&gt;
              &lt;td *ngFor="let cell of ukeEn()" 
                  [attr.title]="cell.id"&gt;{{cell.text}}&lt;/td&gt;
                  &lt;/div&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I would like to check if <code>attr.title</code> (or <code>cell.id</code>) == <code>any of the element's .dato attribute</code> (an element is a type element called <code>Cell</code>, with the attribute <code>dato</code>) in an array called <code>datoer</code>, which is defined in my component. So I need to check the <code>attr.title</code> up against every value in the <code>datoer</code> array. Then I want to add an element (for ex. <code>div</code> or <code>p</code>) in the <code>td</code> if this condition is <code>true</code>.</p>
  
  <p>Is this possible?
  If you need more code samle to understand my problem, just ask.</p>