I found a link regarding dynamically loading of template in Angular 2 component here http://www.bennadel.com/blog/3101-experimenting-with-dynamic-template-rendering-in-angular-2-rc-1.htm.
I am trying to implement this in beta.9 which makes the plunker to break http://plnkr.co/edit/g9Mect63GoaybJmqLMef?p=preview. What are the breaking changes in angular2 rc-1 which makes my plunker not work?
Here is his plunker demo in rc-1 http://plnkr.co/edit/6cwYyfPUJZYOMM5YD1IB?p=preview. I can't spot the error since there are no errors also showing in Console window.
<dynamic-repeater [items]="colors">
<template #itemRenderer #color="item" #index="index">
<div title="Item {{ index }}" class="swatch" [style.backgroundColor]="color.hex">
<br />
</div>
<div class="name">
{{ color.name }}
</div>
</template>
</dynamic-repeater>