title: How to make a custom directive with input field in angular-2?
body: <p>I am learning Angular-2 and experimenting on it. I was trying to build an angular-2 directive with an input field. Lets describe, I have a custom directive called <code>custom.directive.ts</code>:</p>
  
  <pre><code>import { Directive } from '@angular/core';
  
  @Directive({
      selector: '[inputDir]',    
  })
  
  export class InputDirective{}
  </code></pre>
  
  <p>Now I add here an input field, which I would like to use in my app.component.ts.</p>
  
  <p>How may I do it?</p>