title: How to implement ngIf in td
body: <p>I have a table where I insert data from DB, however, I want to edit those data which are qualified based on my checking and therefore should be 2 buttons, 1 for delete and 1 for the edit which would be enabled. If the row inserted in the table is not qualified I want to disable those buttons. What is the right implementation of this scenario?</p>
  
  <pre><code>&lt;tbody&gt;
    &lt;tr *ngFor="let item of reservations"&gt;
      &lt;td&gt;{{item.name}}&lt;/td&gt;
      &lt;td&gt;{{item.email}}&lt;/td&gt;
      &lt;td&gt;{{item.phone}}&lt;/td&gt;
      &lt;td&gt;{{item.numberOfGuests}}&lt;/td&gt;
      &lt;td&gt;{{item.timetables}}&lt;/td&gt;
      &lt;td&gt;{{item.data}}&lt;/td&gt;
      &lt;td&gt;
        &lt;div *ngIf="{{item.data}} =&gt; today &amp;&amp; {{item.data}} &lt;= tomorrow"&gt; &lt;a&gt;Ala bala&lt;/a&gt;&lt;/div&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>A few things to say: item.data is of type date as MM-dd-YYYY and so is today which is the date of today and so is tomorrow which is the date of tomorrow.</p>
  
  <p>Edit: 
  Posting the error:</p>
  
  <blockquote>
  <pre><code>Uncaught Error: Template parse errors:
  Parser Error: Bindings cannot contain assignments at column 12 in [item.data 
  =&gt; today &amp;&amp; item.data &lt;= tomorrow] in 
  ng:///AppModule/ReservationtableComponent.html@72:33 ("             &lt;td&gt; 
  {{item.data}}&lt;/td&gt;
                        &lt;td&gt;
                          &lt;div [ERROR -&gt;]*ngIf="item.data =&gt; today &amp;&amp; item.data 
  &lt;= tomorrow"&gt; &lt;a&gt;Ala bala&lt;/a&gt;&lt;/div&gt;
                        "): 
  ng:///AppModule/ReservationtableComponent.html@72:33
  at syntaxError (compiler.js:1016)
  at 
  TemplateParser.push../node_modules/@angular/compiler/fesm5/compiler. 
   js.TemplateParser.parse (compiler.js:14813)
  at 
  JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler 
  .js.JitCompiler. _parseTemplate (compiler.js:23992)
  at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler.js. 
  JitCompiler._compileTemplate (compiler.js:23979)
  at compiler.js:23922
  at Set.forEach (&lt;anonymous&gt;)
  at 
  JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler. 
  js.JitCompiler._compileComponents (compiler.js:23922)
  at compiler.js:23832
  at Object.then (compiler.js:1007)
  at JitCompiler.push../node_modules/@angular/compiler/fesm5/compiler. 
  js.JitCompiler._compileModuleAndComponents (compiler.js:23831)
  </code></pre>
  </blockquote>