Closed RGerhardt-Pressmind closed 1 year ago
Hi @RGerhardt-Pressmind,
Did you set the [contextMenuValue]
attribute's value on the [contextMenu]
directive ?
@sroucheray Yes, i have set
Hummm.... Sorry to ask, but could you provide a minimum reproduction of the problem on a stackblitz please ?
@sroucheray Here can you this reproduce:
https://stackblitz.com/edit/stackblitz-starters-ttbvtv?file=src%2Fmain.ts
{{value?.mobile}} is the value, but value is undefined
You spoted a bug. This should be fixed in 16.0.2 https://stackblitz.com/edit/stackblitz-starters-svke3h?file=src%2Fmain.ts
Can you check that it is good for you ?
Yes, this is a perfect solution. Thank you very much 👍🏻
I have the problem that let-value does not contain a value. It is an object, not a string, which in turn is supposed to have the value mobile filled, which it does not. value is apparently null.
What am I doing wrong or is this an error?
<context-menu #contactPersonContextMenu> <ng-template contextMenuItem let-value (execute)="openEmail('tel:'+$event.value.mobile)" [visible]="visibleMobile"> Anrufen Mobil ({{value?.mobile}}) </ng-template> </context-menu>