title: Dynamically attach events to an Input
body: <p>I am creating a form generator in ng5. Basically, I send it JSON and it generates the form.</p>
  
  <p>I need a way to attach events dynamically to a <code>FormControl</code>. I am passing it the following JSON in:</p>
  
  <pre><code>{
    events: {
       click: 'functionNameHere',
       dblclick: 'functionNameHere',
       so on ....
    }
  }
  </code></pre>
  
  <p>How do I attach any events passed here to my control?</p>