I have json object which holds some html strings. Need to create multiple ng-template with unique reference variable.
   <div *ngFor="let el of ElementList">
    <ng-template #el.id>
      <div [innerHtml]="el.html"></div>
    </ng-template> 
   </div>
Here is my ElementList array
 ElementList = [
    {id: 'h1', html: '<h1>sample heading</h1>'},
    {id: 'h2', html: '<h2>sample heading</h2>'},
    {id: 'h3', html: '<h3>sample heading</h3>'},
  ];
Can anyone help me on this
 
     
    