title: How to extend 3rd party components in Angular2
body: <p>I use  <code>datatable</code> from primeng and what to do if I want to add some features? 
  This is typical template for using <code>datatable</code>:</p>
  
  <pre><code>&lt;p-dataTable [value]="cars"&gt;
      &lt;p-column&gt;
        &lt;template let-car="rowData" pTemplate="body"&gt;
          &lt;button type="button" pButton
                  icon="fa-bars"&gt;&lt;/button&gt;
        &lt;/template&gt;
      &lt;/p-column&gt;
      &lt;p-column field="year" header="Year"&gt;&lt;/p-column&gt;
      &lt;p-column field="brand" header="Brand"&gt;&lt;/p-column&gt;
  
    &lt;/p-dataTable&gt;
  </code></pre>
  
  <p>Now, I want to implement row inline editing(not cell editing). And, I am thinking where to start. I can write directive but I don't know how to get access to row and dynamically apply directive.</p>