I want to create a context menu in directive with angularjs, I can create a menu but can not create with submenu. I mean, open submenu on hover.
Sample Fiddle: sample contextmenu
My Controller:
$scope.menuOptions = [
        ['New User', function () {
           console.log("New User");
        }],
        ['Delete', function () {
           console.log("Delete");
        }]
    ]; 
This fiddle is a very good,only I want to add submenu to this context menu. How can I create submenus based on this example?
 
     
     
     
    