Does anybody know of a method to pass variables to templates in Angular2?
Suppose I have the following code snippet:
<div *ngFor="foo in foos">
<ng-container *ngTemplateOutlet="inner"</ng-container>
</div>
---------------
<ng-template #inner>
{{ foo.name }}
</ng-template>
How can I modify the template so that it displays the name
of the given foo
item?