How can I pass a generic type parameter to an Angular2 component?
<p>Let's say I got a component with a fixed input parameter type,</p>

<pre><code>@Component({
    selector: 'fixed',
    template: '&lt;div&gt;{{value}}&lt;/div&gt;'
})
export class FixedComponent {
    @Input() value: string;
}
</code></pre>

<p>How do I go about making that parameter type generic, i.e.</p>

<pre><code>@Component({
    selector: 'generic',
    template: '&lt;div&gt;{{value}}&lt;/div&gt;'
})
export class GenericComponent&lt;T&gt; {
    @Input() value: T;
}
</code></pre>

<p>That is, how do I pass the type in the template of the parent component?</p>

<pre><code>&lt;generic ...&gt;&lt;/generic&gt;
</code></pre>