I am going to have a contextmenu directive in ng-repeat items. Based on whether a condition is true, the directive should be applied. How do I put a condition like only when
Can you do something like this, using ng-if?
ng-if
{{item.name}}
Here are the docs for ng-if.
EDIT: If you are driving the context menu off of a class, you should be able to do this: