1

I am trying to get selected value of menu option .Actually In my demo when I click button it show menu option I want to get the selected element text when user click any select option from the menu and hide the menu .

How to get the selected item from menu or selected text from menu .First click button it show menu item Then select any element from menu then get the element from menu. http://codepen.io/anon/pen/RPaOQY

   link:function(scope,element,attr){

                $(element).menu();
              $(element).bind('click',function(){
                  alert('--')
                  isMenuVisibles=false;
              })
Pallavi Sharma
  • 635
  • 2
  • 16
  • 45
  • thanks but what is the use of $timeout(angular.noop) ..you also give solution – Pallavi Sharma May 15 '15 at 10:05