Component transclude with inline template
I'm using Angular 2-rc3 and have a Component and I want to apply transclusion, just in a bit of a different way. Here's my component: import { Component, Input } from '@angular/core'; @Component({ selector: 'my-list', template: `<ul> <li *ngFor="let item of data"> -- insert template here -- <ng-content></ng-content> </li> </ul>` }) export class MyListComponent { @Input() data: any[]; } And I use it like this: <my-list [data]="cars"> <div>{{item.make | uppercase}}</div> </my-list> As you can see, I'm trying to define an inline template that will be used by my component. Now this goes horribly