I am trying to create a vertical menu such as a website . the thing i'm looking for is: when the menu collapses the submenus, they are opened by hovering, and when the menu is open, the submenus open under the links.
Here is my JSFiddle that I did: I can open the menu after clicking the button. the submenu works (the last one) , but I donβt want to open the submenu when the menu crashes.
Angular
var app = angular.module('myApp', []);
app.controller('mainCtrl', function ($scope) {
$scope.noneStyle = false;
$scope.bodyCon = false;
$scope.sasd = "asd";
$scope.toggleStyle = function () {
$scope.bodyCon = !$scope.bodyCon;
$scope.noneStyle = !$scope.noneStyle;
}
});
UPDATE
menu with submenu:

submenu is open with freezes

what I want!! thanks in advance
user3856699
source
share