title: *ngFor two values from array
body: <p><a href="http://plnkr.co/edit/Us4AUk39xPmDM3y0f2lH?p=preview" rel="nofollow">Plunker</a></p>
  
  <p>I'm trying to format data in angular using pipes. for the headers and fields names I use an array passed in from typescript, it works very nice. problem is when I try to pass in the field type from the same array, angular doesn't accept it. </p>
  
  <p>the error is:</p>
  
  <pre><code>Error: Uncaught (in promise): Template parse errors:
  Parser Error: Unexpected token '[' at column 23 in [{{tran[col.field] | tran[col.type]}}] in Transaction@27:79
              ("et tran of _trans"&gt;&lt;td class="text-navy" *ngFor="let col of cols"&gt;[ERROR -&gt;]
      {{tran[col.field] | tran[col.type]}}&lt;/td&gt;
  </code></pre>
  
  <p>Typescript  Code:</p>
  
  <pre><code>  private cols;
    this.cols = [
              { field: "DateCreated", header: "Date", type: "date" },
              { field: "Name", header: "Customer", type: "string" },
              { field: "Amount", header: "Amount", type : "money" }
                      ];
  </code></pre>
  
  <p>Angular2 Code:</p>
  
  <pre><code>    &lt;thead&gt;
                                      &lt;tr&gt;
                                          &lt;th *ngFor="let col of cols"&gt;{{col.header}}&lt;/th&gt;
                                      &lt;/tr&gt;
                                  &lt;/thead&gt;
                                  &lt;tbody&gt;
                                      &lt;tr *ngFor="let tran of _trans"&gt;
                                          &lt;td class="text-navy"
                                 *ngFor="let col of cols"&gt;
                                 {{tran[col.field]
                                 | col.type &lt;--- here's the problem!}}
                                 &lt;/td&gt;
                                 &lt;/tr&gt;
                                 &lt;/tbody&gt;
  </code></pre>
  
  <p>EDIT: I just tried to {{tran[col.field] + col.type }} that gives no error, it displays my datatype name together with the value. problem begins when I put the | in the middle..</p>