I am having a issue with binding a dynamic function to a click event. To more options dynamically. See my below code. ngFor value comes form the API.
<ng-container *ngFor="let perm of selectedFile.accessPerms">
<li nz-menu-item (click)="this[perm.link]()">{{ perm.title }}</li>
</ng-container>
</ul>```
API Response.
```accessPerms: [{opt: "Rename", link: "renameFileFolder"}, {opt: "Remove", link: "showRemoveModal"}]```
Error msg: <img src="https://i.stack.imgur.com/zbwhL.png">