Hello community,
I currently looking for a way to cut the noise when passing templates to components
Consider the following code:
```
<parent>
<ng-template #child1><div>Test</div></ng-template>
<ng-template #child2><div>Test</div></ng-template>
</parent>
```
is it possible to create a structural directive that can be used like this or similar?
```
<parent>
<div *asTemplate="#child1">Test</div>
<div *asTemplate="#child2">Test</div>
</parent>
```
so that
```
<div *asTemplate="#child1">Test</div>
```
desugars to
```
<ng-template #child1><div>Test</div></ng-template>
```
Directly using
<div *asTemplate #child1>Test</div>
doesn't work of course. because the ref is part of the div.
Thx a lot!