I have a <ul> as such with <li>'s:
<li ng-repeat="x in xs" ng-class-odd="'x'" ng-class-even="'y'">
// inject here
<span>
{{x.v}}
</span>
</li>
I'd like on a certain event to inject a context menu (DOM position described above) that looks like this:
<ul id="context" class="col">
<li class="three"><span>1</span></li>
<li class="three"><span>2</span></li>
<li class="three"><span>3</span></li>
</ul>
What's the best way to implement this? 1, 2 and 3 above have the same functions to handle the repeated list items in the parent container. So I'm not sure if injecting the context menu as described above is a smart idea since It would generate unseeded repetitions of the context menu.
Thanks.
x. Bind another directive to your repeating elements that has thecontextmenuevent handler in it and does the broadcasthm-swipeinstead of click?