I'm working on a project where I need to dynamically nest my code into the ng-template using a Directive. Is there a method to accomplish this in Angular?
Here's an example of the code I have:
<button> Click Me </button>
If I use a directive (custDir) like this
<button custDir> Click Me </button>
The desired outcome in Angular would be:
<ng-template>
<button> Click Me </button>
</ng-template>
Is there a way to make this happen?