jsfiddle angular dynamic menu
angular-dynamic-menu.html