Good day, how can achieve to inject a custom directive when the button is being click?
See my code below..
<ng-container *ngFor="let apidata of zoneOne; let i = index">
<div class="box" *ngIf="(i < 5)" **insert directives here**>
<div class="box-holder">
<span id="AssignmentNumber">{{apidata.Assignment}}</span>
</div>
</div>
</ng-container>
<button class="viewMore" (click)="viewMoreClick()">View more..</button>
this is just a simple toggle event. i just having trouble figuring out how to do this because it all toggle the element when i put my function on each div. i just want to show the div when the specific div is being click..