Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic context menu not working: "$event is not defined" #158

Open
ndaian opened this issue Apr 23, 2019 · 1 comment
Open

Dynamic context menu not working: "$event is not defined" #158

ndaian opened this issue Apr 23, 2019 · 1 comment

Comments

@ndaian
Copy link

ndaian commented Apr 23, 2019

I am trying to use Dynamic context menu but the sample doesn't seem to work. I got this error ($event is not defined) in console.

Please see this Stackblitz Example.

Right click on the first item and check the console.

@muziol
Copy link

muziol commented Sep 5, 2019

In HTML you dont use '$event' but you need to use 'item' but you need add directive let-item to ng-templete.

<ng-template contextMenuItem let-item>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants