Closed
Description
🚀 feature request
Relevant Package
This feature request is for @angular/commonDescription
If we need to use[ngTemplateOutlet]="templateName"
The "templateName" should be defined in component and should be of type TemplateRef.
Problem described with an example here - https://stackoverflow.com/questions/56001849/how-to-convert-string-to-an-template-reference-instance
Describe the solution you'd like
I should be able to convert the string type from a property to templateRef type using a pipe like below[ngTemplateOutlet]="templateName | templateRef"
In this case templateName can be string.
Describe alternatives you've considered
Here is the current alternative to the problem described above.
https://stackblitz.com/edit/ng-template-outlet-mhpnas?file=app/app.component.ts