Angular2 - Pass values to a dynamic component created with ComponentFactory
<p>I was following Günter Zöchbauer's advice on <a href="https://stackoverflow.com/questions/36325212/angular-2-dynamic-tabs-with-user-click-chosen-components/36325468#36325468">how to create dynamic components</a>
and I was wondering how I could pass values to it - as in, the child component has an @input.</p>

<p>Using the plunker example given in the above question - <a href="http://plnkr.co/edit/3dzkMVXe4AGSRhk11TXG?p=preview" rel="noreferrer">plunker</a> - how could I pass the child component a string, lets call it message, that would then display when clicking the 'add' button.</p>

<p>Here's an example of how the child component might look:</p>

<pre><code>import {Component OnChanges, Input} from '@angular/core'

    @Component({
      selector: 'hello',
      providers: [],
      template: `&lt;h1&gt;{{message}}&lt;/h1&gt;`,
      directives: []
    })
    export class HelloComponent implements OnChanges {
      @Input() message:any;

      constructor() {
      }

      ngOnChanges(changes:any){
      }
    }
</code></pre>